Skip to content

Java Hints Preferences

Achal Talati edited this page Nov 13, 2024 · 1 revision

Follow the steps given below to setup the custom hints preferences:

  1. Install NetBeans.
  2. Configure your Java formatting preferences in NetBeans:
    Menu: Tools | Options | Editor | Hints
    In the "Language" drop-down: Choose "Java"
  3. Press "Export" button (lower left corner)
385061255-ae1c7414-944a-4e4f-80bd-61d2a173e7ec
  1. 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.

Clone this wiki locally