generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 30
Java Hints Preferences
Achal Talati edited this page Nov 13, 2024
·
1 revision
Follow the steps given below to setup the custom hints preferences:
- Install NetBeans.
- Configure your Java formatting preferences in NetBeans:
Menu: Tools | Options | Editor | Hints
In the "Language" drop-down: Choose "Java" - Press "Export" button (lower left corner)
-
Set the
jdk.hints.preferences
setting in VS Code:
In VS Code, open the "Command Palette" (Ctrl+Shift+P)
Type "Preferences: Open User Settings (JSON)"
Set the following property: \"jdk.hints.preferences": "PATH_TO_EXPORTED_NETBEANS_HINTS_PREFERENCES_XML"
Your custom Java hint preferences should now be honoured by the "Oracle Java" extension in VS Code.
While it may not be the perfect solution, performing this task should be a one-time requirement, unless you find yourself regularly adjusting your hints preferences.