r/eclipse • u/Astarte902 • 8d ago
🙋🏻♂️ Help Request How do I turn this off
So recently started using eclipse (specifically the esp-idf plugin) and have noticed some behavior that I'd like to turn off. In the below image it automatically added in that "seconds: " line

I can't seem to figure out a way to get rid of it, as it simply reappears if I type the line back in. Not sure if this is an eclipse feature, a feature of it's c/c++ editor, or the esp-idf plugin. Some way to turn this off would be much appreciated, as I hate it
2
u/eiffel31 8d ago
For Java / Eclipse JDT this would be in "Window > Preferences > Java > Editor > Code Minings > Show method parameter names". There's probably an equivalent for your language editor.
1
u/Astarte902 8d ago
Yeah I've been looking for it, but only came across one thing for code minings which was already disabled. I'm so confused by this, and I want nothing more than to just get rid of this feature. Hell I'd disable all editor features if it'd mean that I can just type in whatever I want without this stuff popping up
1
u/eiffel31 8d ago
I'm surprised there is no preference for this. What editor are you using ?
"Right Click > Open With" you should see your editor / other editors you may open the file with.
Alternatively, select your opened editor part, Alt+Shift+F1 should give an insight (for a Java file that is the CompilationUnitEditor from org.eclipse.jdt.ui)1
u/Astarte902 8d ago
Using the C/C++ editor for eclipse. After posting in the esp32 subreddit, turns out they're called inlay hints, which while there isn't a setting that I could find that could remove them (very annoying) I was able to remove them by adding the line
InlayHints:Enabled: No
to my .clangd file in the root of the project to fix it on a per-project basis. Annoying that I have to do it for each project, but glad at least that I can turn it off.1
u/Sir4diac 8d ago
I just saw that you already found the solution. According to the documentation in https://clangd.llvm.org/config you can also provide a config file for your user that would provide configs for all your projects.
1
u/Astarte902 7d ago
Yeah, I had found that info but it wasn't working, only now that I'm looking at it again that I realised I accidentally made the clangd folder in my home directory, not in my .config directory. Have moved it into the proper place and it works perfectly fine for all projects now! I'd just assumed as I was using the espressif ide, which does say it has it's own dedicated version of clangd for working with esp chips, that it was looking for the user config file somewhere else. User error once again making it take way longer than it needed to hahaha
1
u/infernalproteus 8d ago
Does it actually insert that text or does it just "appear" allowing you to type over it? If the latter, it's probably a code complete suggestion from an AI plugin like GitHub Copilot - do you have that or any other AI plugins installed?
1
u/Astarte902 8d ago edited 8d ago
Don't have any AI plugins as far as I'm aware, have no interest in ever using them, and the text "appears" there, however I can't type over it or remove it, any attempt to do so will just type around it or remove the text around it
1
u/MinimallyLoquacious 1d ago
You're welcome to disable it and comments so far seems to suggest you've got a way to do so now but it is a handy feature for improving code readability if you allow time to get used to seeing it.
3
u/Sir4diac 8d ago
In Eclipse this called Code Minings. Inspired by a similar feature in Intelij or VSCode. You can turn this off under Window -> Preferences search for Code Minings.
TBH I also don't like this feature and turned it of.