question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any way to get rid of .project .classpath .settings/ files?

See original GitHub issue

Every time I open a Java project, no matter Maven or Gradle, the extension always creates many .project .settings/ .classpath files in my project folder. And yes I know it’s Eclipse’s behavior to create files in project root folder as mentioned in https://github.com/redhat-developer/vscode-java/issues/466#issuecomment-373391208 But it’s really very annoying that the extension creates these files silently without any confirmation, especially with the SCM stuffs, I have to manually add them into .gitignore file. And I also have to add them into “files.exclude” in VSCode’s settings to hide them from the explorer.

I’ve noticed some projects are also created in the “workspaceStorage” folder, so is it possible to create a corresponding project in the “workspaceStorage” folder and link my files to it? I followed this post in Eclipse, and find it adds <linkedResources> entries in .project. I suppose it might be somehow doable.

Moreover, it would be also nice for me if it notifies the changes and provides shortcuts to hide/ignore them, because I don’t know and don’t care about .settings/ stuffs. E.g. it might pop up a message box saying something like “Some files are created by the extension, do you want to add them into .gitignore?”

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:70
  • Comments:61 (4 by maintainers)

github_iconTop GitHub Comments

64reactions
esr360commented, May 29, 2019

This is so frustrating, why is my text editor creating random files for me?

60reactions
bgeihsgtcommented, Sep 10, 2019

Note I tried this plugin and am promptly uninstalling it because of this issue. I don’t ever expect VSCode to generate files on my behalf unless it’s the result of an explicit action I took (beyond just opening some folders VSCode).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignore .classpath and .project from Git - Stack Overflow
If the .project and .classpath are already committed, then they need to be removed from the index (but not the disk)
Read more >
How To Prevent Eclipse from editing the .classpath files of ...
I have about 10 projects - 9 of them are using the remaining one project, let's call it Common. Common is using a...
Read more >
Eclipse Classpath Editing - Eclim
When you first create a project, a .classpath file is created in the ... is to directly edit the .classpath to add, update,...
Read more >
Setting the Project Classpath for Export - FICO Help
To avoid conflicts, remove references to the classes from the global classpath. (Select Windows > Preferences > Blaze Advisor to open the window.)...
Read more >
Project settings don't work for me in 2021.1
Hi, I have been working on a project that had been shared with Eclipse users ... module files that are linked with Eclipse...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found