Closed
Description
There are some issues regarding to this:
#2304
microsoft/vscode-java-test#1518
Looks like it's enabled in Eclipse by default
I haven't confirmed yet that the highlighted option is about the
-parameter
option. Correct me if I'm wrong.
Activity
rgrunber commentedon Jan 11, 2023
It appears to be https://github.com/eclipse-jdt/eclipse.jdt.core/blob/7f2b6b230ae5f09345d2f0ebbddae00d9a72b9fe/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java#L320-L333 . It seems to be disabled by default though according to the docs.
jdneo commentedon Jan 12, 2023
Oh sorry, I just check the setting in a newly installed Eclipse instance, and it's disabled by default.
Then let's wait to see if more people want this to be enabled by default.
bohdan-shulha commentedon Jul 3, 2023
How to enable this in VS Code? :)Ah, nevermind. I've visited the first two links in this issue - it became obvious.
However, the solution didn't work for me.
Creating the .settings/org.eclipse.jdt.core.prefs file didn't help though. The .settings folder itself and this file were filled with different settings, so it should have been picked up.
BTW, would be great to specify this option via the launch.json/settings.json that could be safely shared.
jdneo commentedon Jun 3, 2024
With the latest
Language Support for Java(TM) by Red Hat
(1.31.0) and latestExtension Pack for Java
(0.27.0). You can now change the compiler options with a GUI with following steps:Open Project Settings
Compiler
tab, and enableStore information about method parameters
Apply Settings
at the bottom of the Project Settings pagejdneo commentedon Jun 3, 2024
Close since we have a GUI now to set the setting.
fp024 commentedon Oct 6, 2024
Running "Clean Java Language Server Workspace" resets this setting to the default.
It would be nice to have an option to always apply this setting globally so that it is not affected by running "Clean Java Language Server Workspace".
jdneo commentedon Oct 8, 2024
@fp024 Feel free to file an issue your request.