Assaf Mendelson
Assaf Mendelson

Reputation: 13001

VSCode Language Support for Java extesion automatically adds .settings, .project and .classpath to directory

I have a Maven project with Scala and Java. I generally develop it using Intellij IDEA, however, I sometimes open it in Visual Studio Code.

Whenever I do that, it automatically adds .settings directory, .project file and .classpath file to the root of each module in the project.

This is seemed to occur due to the Language Support for Java by Red hat extension.

I would very much like to avoid this, how would I do that?

Upvotes: 3

Views: 3751

Answers (1)

Fred Bricon
Fred Bricon

Reputation: 5579

The Language Support for Java(TM) by Red Hat (aka vscode-java) extension generate those Eclipse files, because, under the hood, a customized, headless Eclipse process (jdt.ls) is providing all the Java support. You can not remove these files, if you expect proper Java support by this VS Code extension.

So your alternatives are:

  • add these files to your .gitignore (if you're using git, else, ignore them from whatever SCM you use)
  • disable or uninstall vscode-java and use a different Java extension in VS Code

Upvotes: 4

Related Questions