Color-free code when filename starts with upper-case

Asked

Viewed 324 times

0

I am using Intellij IDEA to develop using Flutter but when I name a new class with its name starting in uppercase the typed code remains the same color without highlighting variables, Keywords and etc.

This image illustrates the code in a class starting with low-case call: odoo_services.dart. Note that the typed code has the colored effects.

inserir a descrição da imagem aqui

Now, the image illustrates the code of the class called: OdooServices.dart and code without color effects.

inserir a descrição da imagem aqui

Note: The code compiles and works correctly, the only problem is the color effects in the code.

2 answers

0

The Dart language differentiates the classes(colors) by the first letter of the word, in the case in my visual studio code it turns green when I put the first letter uppercase.

It is more or less an obligation to keep the code according to good kkk practices

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.