Possibility to restrict "Show method parameter names" to primitives
See original GitHub issueI’d like to have a possiblity to restrict “Show method parameter names” in a way that the names are only displayed on primitives (boolean,int,long…) and strings.
I think mostly by passing complex objects one can derive their meaning from the type. Assume the following editor-view:
File dir = new File(pathname: "/tmp/test/");
doSomething(directory: dir, create: true);
The “directory:” parameter-name does not provide any useful additional information but uses a lot of space. With the suggested feature enabled it would look like:
File dir = new File(pathname: "/tmp/test/");
doSomething(dir, create: true);
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top Results From Across the Web
How to restrict class-scoped type parameter to primitive ...
You cannot do that with type parameters; if they do allow to have multiple bounds (as in T extends A & B etc),...
Read more >Don't show parameter name if variable name is the same than ...
Alternative idea: Only show the parameter name if the passed in value is a literal or the method takes multiple parameters of the...
Read more >Java method - parameters, hiding, overriding - ZetCode
Java method tutorial covers methods - reusable blocks of code in Java. We talk about method parameters, hiding and overriding method.
Read more >Viewing method parameter information | WebStorm ... - JetBrains
Open the Settings/Preferences dialog ( Ctrl+Alt+S ) and go to Editor | Inlay Hints. Expand <required language> under Parameter names.
Read more >Writing Classes and Javadoc
Generally, We call a method by writing its name, followed in parentheses by its arguments (one for each parameter in the method's header)...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nuessgens @vogella please reinstall JDT CodeMining, now you have a new preference
Show parameter only for literal
which is enabled by default. Here a little demo:I have enabled by default, because I agree with @gayanper comment https://github.com/angelozerr/jdt-codemining/issues/53#issuecomment-402507576
Thanks for your feedback @nuessgens