Every color has a semantic and very useful not only for developers but also for those from non-technical background to cope up with the lengthy code.
Everything including variables, properties, keywords, numbers, classes, constants, functions, strings, operators and comments has different color to get differentiated.
One will get habituated with this by using this daily. Then user can blindly tell which color is of what purpose. This makes code readable for everyone.