How to get rid of annoying "newNode: node, offset: number" popup (intellisense?) - visual-studio-code

When editing javascript with Visual Studio Code I continuously get a useless and obtrusive popup showing some sort of irrelevant method signature
It also won't go away when typing. Even escape won't remove it but clicking in some other code usually does.
My current user config looks as follows
// Place your settings in this file to overwrite the default settings
{
"python.pythonPath": "/home/ivo/Atom/bin/python",
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.unitTest.nosetestsEnabled": true,
"python.unitTest.nosetestPath": "bin/django",
"python.unitTest.nosetestArgs": ["test", "apps/"],
"python.unitTest.unittestEnabled": false,
"editor.acceptSuggestionOnEnter": false,
"editor.fontSize": 13,
"editor.renderControlCharacters": true,
"editor.useTabStops": false,
"editor.suggestOnTriggerCharacters": false,
"editor.wordBasedSuggestions": false,
"editor.quickSuggestions": false
}

To stop showing the annoying hint popups, open "settings.json" in VSCode:
(File -> Preferences -> Settings).
Add the following line to the setting file (including quotes), and save it:
"editor.parameterHints": false

Related

How to preserve highlights after using `files.associations` on a specific file

I used files.associations in .vscode/settings.json to override "editor.formatOnSave": false for one specific file:
{
"files.associations": {
"path/to/my/file.html": "no_format_on_save"
},
"[no_format_on_save]": {
"editor.formatOnSave": false,
}
}
but now I lost the highlights related to html how can I put it back ? I tried having two associations with array or coma separated but it doesn't seem to work.
Thank you

how to Suggestion acceptance only using enter and tab

I want to write normally in VSCode for newline, Want to type "e.keyCode" I try to type in new Javascript file only one char "e" and showing "else" suggestion, and when I type "." (dot), the "e" become "else"
In setting already done this.
"editor.suggest.showKeywords": false,
"editor.acceptSuggestionOnEnter": "on",
"editor.quickSuggestions": {
"other": "on",
"comments": "off",
"strings": "off"
}
Add setting for showKeywords and acceptSuggestionOnEnter.
The acceptSuggestionOnEnter is not working,
My question is how to accept suggestion only with enter and/or tab only.?
Thank you.

How to format on save with the Deno VSCode extension?

I am using the vscode-deno extension and eventhough I turned on deno.enable, deno.lint and deno.unstable in my vscode settings, it does not format my code on save, which I suppose is the expected behavior.
I instead used the RunOnSave extension to hack my way into running a deno fmt on file save, but I was wondering if there was a way to do that with the Deno extension alone?
My .vscode/settings.json:
{
"deno.enable": true,
"deno.lint": true,
"deno.unstable": true,
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.ts$",
"cmd": "deno fmt ${file}"
}
]
}
}
Found it, I have to turn on formatting on save and specifying the Deno extension as the default formatter
{
"deno.enable": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "denoland.vscode-deno"
}

How do I disable the underlining of Rust variables and their methods in Visual Studio Code?

How do I disable the underlining of variables and their methods, like shown above? I find it quite distracting.
I don't think this is a duplicate of Disable wavy underline in VS Code because it's not a wavy underline.
{
"editor.semanticTokenColorCustomizations": {
"enabled": true,
"rules": {
"*.mutable": {
"underline": false,
}
}
}
}
Fixed it by dumping the above in settings.json
Try adding the following line to settings.json
"editor.semanticHighlighting.enabled": false,

VS Code Multiple Cursors - Paste Individual Lines Repeatedly

I am using VS Code with VI bindings and I am trying to do the following.
I have the following file contents:
abc="some value"
def="some other value"
ghi="some other other value"
jkl="some other other other value"
.
<etc. for many lines>
I want to make this file change to (Expected Output):
abc=${abc}
def=${def}
ghi=${ghi}
jkl=${jkl}
So far, I have first replaced =.+ with =${. I get the following:
abc=${
def=${
ghi=${
jkl=${
Then I am trying to use multiple cursors in VS Code by Cntrl + Alt + I and I am trying to copy each line from the beginning to paste it so that I get the expected output. For some reason, it isn't letting me select the whole line when I do a Cntrl + Home. Could someone please help me out with this?
For reference: The VI section of my settings.json file is as follows:
// my settings
"vim.easymotion": true,
"vim.sneak": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false,
"<C-w>" : false,
"<C-x>" : false,
"<C-c>" : false,
"<C-h>" : false,
"<C-b>" : false,
"<C-n>" : false
},
I don't use VI, but this is easy to do with a snippet (in your keybindings.json).
{
"key": "alt+b", // whatever keybinding you wish
"command": "editor.action.insertSnippet",
"args": {
"snippet": "${TM_SELECTED_TEXT/(.*)=.*/$1=${$1}/g}"
},
"when": "textInputFocus && editorHasSelection"
},
Then select your code and alt+b (or whatever keybinding you use). You don't need multiple cursors or need to select each line separately.
Why does it not work with Multi Cursor?
Using the default key bindings.
position cursor before a
use Ctrl+Alt+DownArrow as often as you like
use Shift+Ctrl+RightArrow select all before the =
Ctrl+C
RightArrow 2 times
Shift+End select all after the =
${
Ctrl+V
Esc
Or start selecting =" followed by
Ctrl+Shift+L LeftArrow Shift+Home Ctrl+X RightArrow Shift+End ${ Ctrl+V Home Ctrl+V Esc