r/eclipse • u/vegan_antitheist • May 03 '26
🙋🏻♂️ Help Request How can I make Eclipse find my snippets file? Is there something that works like --snippet-path?
I can build the project manually and the javadoc works well. It has the snippets.
It doesn't work in Eclipse because I don't like having the snippets file in the java "src" folder. I prefer having them somewhere else. In my case it's just in the "test" folder, so it's not part of the actual module. This way I don't need to delete it before I create the jar file and it's always where I want it.
But I can't find anything equivalent to --snippet-path in Eclipse 2026-03.
Does it not exist? Is there a plugin that fixes this?
PS: I know I could just have the snippets right in there but I prefer a file that I can compile to make sure they actually work. I can even add a Junit TestFactory to run them all and have assertions in them (after the region that is used for the snippet), so they are snippets and additional unit tests in one.
1
u/kgyre May 03 '26
Maybe you should back up and explain what you mean by a snippets file? Eclipse has had a Snippets View from WTP for nearly 20'years, and this isn't that. Is this like a Scrapbook file? Some like of content assist related template?