3 ms·
IntelliJ labels the parameter at the call site with its parameter name, if its value isn't a local variable that already has that name. On your display it look
by nostrademons 7y ago
IntelliJ labels the parameter at the call site with its parameter name, if its value isn't a local variable that already has that name. On your display it looks like CopyFile(from: "foo", to: "bar"), with the from and to labels in an unobtrusive font, but in the source file it's just CopyFile("foo", "bar").
- Semaphor 7y agoNot just IntelliJ, all their IDE’s
- Stratoscope 7y agoWhen someone says "IntelliJ" they are often referring to any and all of the JetBrains IDEs. They are all slightly different versions of IntelliJ.
- danfang 7y agoYou don't want it unlabeled in the source code though - a code reviewer will totally miss a swapping of parameters. It's best when fully supported and explicit in the language.
- sk5t 7y agoYup! It's nice and all that IntelliJ ghosts the parameter names in there, but that does nothing for external review, static analysis, etc.