Skip to content

Custom file extensions #3216

Answered by snjeza
kosta01857 asked this question in Q&A
Jul 20, 2024 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

@kosta01857 You can try the following:

  1. add
"files.associations": {
        "*.maxj": "java",
    },

to your settings.json
2. find your workspace root - View>Command Palette>Java: Open Java Language Server Log File
You will see

...
Command-line arguments:  -data /home/<user>/.config/Code/User/workspaceStorage/<43ad0d37ddfff916c28b3ca3e295f158>/redhat.java/jdt_ws
...

add

content-types/org.eclipse.jdt.core.javaSource/file-extensions=maxj
eclipse.preferences.version=1

to /home/<user>/.config/Code/User/workspaceStorage/<43ad0d37ddfff916c28b3ca3e295f158>/redhat.java/jdt_ws/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.runtime.prefs

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@kosta01857
Comment options

Comment options

You must be logged in to vote
1 reply
@kosta01857
Comment options

Answer selected by kosta01857
Comment options

You must be logged in to vote
1 reply
@mickaelistria
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants