Hacker News new | ask | show | jobs
by sk1pper 1514 days ago
Autocomplete usually drives me crazy in IDEs - often it covers up nearby code that’s relevant to what I’m currently typing, so I end up hitting ESC all the time just to get it to go away. I guess you don’t have that problem here if the popup is always below your cursor, since there’s never really anything below your cursor in a terminal when you’re entering commands.

But also autocomplete often suggests the wrong thing but I’m typing too quickly to notice, and then I hit enter and get the wrong thing filled in.

What I want is just non-automatic completion - which we already have. Ctrl+R gives me exactly what I need when trying to find some odd command I ran last week. Add in fzf integration and it’s perfect. Tab completion covers everything else. When I don’t want completion, it stays out of the way. In an IDE, you can usually bind completion suggestions to Ctrl+Space or something and then turn off automatic suggestions, or something like that.

Maybe you can set up this tool that way too - then it might be nice to try out. But as I mentioned generally I find the terminal to be pretty ergonomic already for completion stuff.

1 comments

What IDE has such dumb autocomplete?
VSCode - at least the described issues perfectly describe my experience with VSCode autocomplete.
Matches my experience too.

I've done battle with the VSCode autocomplete many times over the years, trying to stop things from popping up automatically when I'm typing. My escape key has gotten more of a worked out over the years than a vim user on speed. I've twiddled every option in Settings but it has defeated me every time.

Yesterday was my latest battle and I think I have the upper-hand. I set the "millisecond delay until show" to some very large value and it seems to have worked. I can now typed without stuff flashing and popping up all the time.

I came back late yesterday to the computer. VSCode was still open, and showing one lonely autocomplete pop up on screen. pfff.. Time to add another zero to the delay setting I guess...

I can relate to this very much. I think I will try out your solution.
I had the same issue until i took the time to check out the docs and config it to my taste, it offers a fair amount of customization.

Granted, you shouldn't need to fiddle with it to make it usable, but i really didn't mind spending some time to get to know better the tools i'm using every day.

Can you share what you did? I find the number of options ins vscode bewildering.
You can check the default setting options and their meaning at https://code.visualstudio.com/docs/getstarted/settings

For the intellisense/suggestion options you can search for `editor.suggest`.

If that's not enough, you can arbitrarily modify the UI of the editor using this extension https://github.com/be5invis/vscode-custom-css

My config file is like 1500 LOC long and it's a bit messy, but in a quick search i found i severely limited the available options, changed the position of the box so it does not cover the text immediately underneath, changed some colors and put some suggestions as inline hints instead, among other stuff:

"editor.snippetSuggestions": "inline" "editor.suggestSelection": "first" "editorSuggestWidget.background": "#00000088" "editorSuggestWidget.foreground": "#ffffffff" "editorSuggestWidget.selectedBackground": "#9960FF33"

Thanks, much appreciated!
Thanks. I was thinking about switching to VS Code from IDEA (because VS Code has evolved a lot, to my surprise), but looks like I need to wait a little more.
Most all of them?

Eclipse, Netbeans, Visual Studio, Monodevelop, VSCode, would be the ones I can recall from the top of my head.