Open bruno-medeiros opened 9 years ago
Come on
+1
This lacking feature is the only reason that keeps me from switching from IntelliJ Idea.
How does the semantic highlighting work in IntelliJ, which semantic elements are highlighted?
Here's what it looks like:
Yeah, I know about go-lang-idea-plugin already. I'm not sure I quite understand the logic of that highlighting though. Println
is a function and is highlighted red, same as RGBA
which is a struct. At the same time, the methods ScaleBy
and Distance
are not highlighted...
Here's how it looks like in Eclipse's PDT:
(note the cursor position)
IntelliJ knows the following token categories for coloring Go programs:
Some additional categories I find useful are:
fmt
)When you install IntelliJ, you can find many more token categories in the Settings dialog (Alt+Ctrl+S), section Editor > Colors & Fonts. Note the General section, which has entries for “Unused symbol” and similar things.
Highlight source code according to semantic properties, example:
-function declaration names -type declaration names -variable names