'Why there are no colors in the code text in Visual Studio Code?

Code Text Colorless

When I code in Visual Studio, it doesn't show any colours in the code text. It shows blue and green colours only for the class and comments texts. Also, VS doesn't suggest me anything when I code. Apart from this, everything things run fine and if there are any errors it shows up in the problem section.

I am doing flutter/ dart

I would really appreciate it if anyone helps me sort it out.

Thank you :)



Solution 1:[1]

I think the issue is likely the VS Code theme you're using. Dark (Visual Studio) only shows limited colours - try changing it to Dark+ and you should see more colours.

Dark

Dark theme

Dark+

Dark+ theme


To Change This Settings;

Setting Icon > Color Theme > Select Dark+ Configuration;

Change Theme Settings

Dark+ Configuration

Solution 2:[2]

I am not using VS but you might try to add Flutter and Dart extension from marketplace.

Solution 3:[3]

  1. In VS Code, open the Color Theme picker with File > Preferences > Color Theme. (Code > Preferences > Color Theme on macOS).
  2. You can also use the keyboard shortcut Ctrl+K Ctrl+T to display the picker.
  3. Use the cursor keys to preview the colors of the theme.
  4. Select the theme you want and press Enter.

Solution 4:[4]

You can try installing "Flutter Widget Snippets" for already written code snippets from VS code Extensions.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Danny Tuppeny
Solution 2 Tolga Y?lmaz
Solution 3 Ashraful Alam
Solution 4 Ojash Gurung