6
\$\begingroup\$

I'm using VSCode, not VisualStudio for Unity scripting. VSCode has syntax highlighting for C#, which works fine, but all the Unity related stuff like Vector3 doesn't get any highlights. I know, that you can change somehow the files, but I can't even find the C# folder in my extensions folder (There is everything else like cpp, css etc. just no c#). Would be great if someone could lead me to the folder location and how to add keywords for the highlighting.

Here is a screenshot, where you can see that float is highlighted, but Transform not.

enter image description here

\$\endgroup\$
2
1
\$\begingroup\$

Assuming you have the latest VSCode and have it configured for Unity development... https://code.visualstudio.com/docs/other/unity

Does Intellisense work for Unity classes? If yes, and you are just not seeing syntax colors, try a different theme. (Preferences->Color Theme)

Some of them highlight class names and some don't.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Yeah Intellisense is working and I tried all the themes, but still no highlighting for variables like Transform or Vector3 and so on, I just added a screenshot. Is this working in your case? \$\endgroup\$ – TobiasW Apr 25 '16 at 6:40
  • \$\begingroup\$ @TobiasW - The colorization seems to be missing from the VSCode demo page, as well. (The main gif at the top of the page.) Page, gif \$\endgroup\$ – ps2goat Dec 14 '17 at 23:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.