Is it possible to customize the menu that is produced in the auto-complete in VSCode? I don’t see any mention of it in the docs here. I’m basically looking to create something closer to how Google Sheets looks in its autocomplete, where for example I’m able to customize (or not) the icon, the spacing, the hover, etc.
3
Answers
VSCode does not natively allow you to change the actual structure of the suggestions widget at this time.
The only thing you can do is customize it’s colors using the
editorSuggestWidget.<setting>
as per the theme color docs.Based on this documentation, the easiest way to just change the colors is by adding this user settings (CTRL+SHIFT+P, type "open settings"). It will open
settings.json
. In that file, you could add these lines:The above config is the colors used in google sheet. If you need to customize the icon, spacing, etc. you might need an extension for that.
I’m not entirely sure about the exact formatting, only that there are different ways to "manipulate" the original CSS classes in VSCode. I wrote an example in response to this. My intention was purely to help, so if it doesn’t work or there’s an issue with the solution, please let me know. It’s just that such detailed messages can’t be left in a comment.
Maybe you’re looking for an add-on like this: vscode-custom-css or apc-extension
Customize Hint Layout with
vscode-custom-css
settings.json
custom.css
fileReload Custom CSS and JS
Example CSS
You can look up the VSCode UI elements in the source code here:
suggest.css
(github.com)