C
C#2y ago
Messiah

❔ How do toggle top level statements?

There's no mentions of this on google. How do you enable/disable this in an existing project?
7 Replies
ero
ero2y ago
Ctrl + . in the file with the top level statements
Angius
Angius2y ago
Or just write out the boilerplate manually
Messiah
MessiahOP2y ago
which boilerplate? in the .csproj?
Henkypenky
Henkypenky2y ago
in your file that is the entry point, generally Program.cs eg: the file that is TLS you can only have 1
Angius
Angius2y ago
No, the namespace, class, method main, etc. No need to change anything in the csproj
Messiah
MessiahOP2y ago
oh, thought you had to add something else
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?