I have a Unity Project open in Visual Studio Code, with 3 .csproj
files, a launch.json
and settings.json
file. I'm using the VS Code plug-in for unity, and the Unity Tools extension for VS Code.
If I open a .js
script, VS Code treats it as such, and all the highlighting happens. But if I open a .cs
script, it treats it as a Plain Text document, and I get no formatting or IntelliSense. If I try to select the language manually, I can select most any language I like, except for C#, which is missing from the list.
Open Program. cs by clicking on it. The first time you open a C# file in Visual Studio Code, OmniSharp loads in the editor. Select Yes when Visual Studio Code prompts you to add the missing assets to build and debug your app.
Go to the menu Code > Preferences > Settings. In the User tab on the left panel, expand the Extensions section. Find and select Run Code Configuration. Find and check the box Run in Terminal.
At Epicodus, we use a free text editor called Visual Studio Code. Visual Studio Code, also known as VS Code, was designed with web developers and computer programmers in mind. It includes many useful features that help write and navigate code more efficiently.
You can manually install C# support. It looks like it was made optional in the February update of Code.
Type F1
to get to the command window and type ext install
to install extensions. Get the C# extension and restart Code.
See the documentation for more information on C# support.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With