I have a project where my jsdoc autocomplete doesn't work in vscode.
Any ideas why or settings I can check to figure out why hitting enter doesn't automatically add a line with a *?
These are my enabled extensions:
I had the same issue on my Angular project. What I did is to add "editor.autoClosingBrackets": "languageDefined" per language like this:
"[javascript]": {
"editor.autoClosingBrackets": "languageDefined"
},
"[typescript]": {
"editor.autoClosingBrackets": "languageDefined"
}
This works for me but it's annoying though because you have to do it per language. But I think they're working on this. github
I also had the same issue, I got it fixed by setting the showWords to true
"editor.suggest.showWords": true
Kind of a bummer though, I really wanted to disable word suggestions but keep using the JSDoc, but for now I will just filter them out.
Hopefully, this will help someone having this issue.
For everyone who has the same problem.
I found this answer useful. It looks like VSCode is treating comments on the same way like Brackets.
editor.autoClosingBrackets
I had this configuration on "never" and changed it to "languageDefined".
For me the culprit was the GitHub Copilot extension, like mentioned in this answer.
In summary, disable the extension,
or
open settings (f1 -> Open Settings(JSON)) and add
"editor.autoClosingBrackets": "languageDefined",
"[javascript]": {
"editor.autoClosingBrackets": "languageDefined"
},
"[typescript]": {
"editor.autoClosingBrackets": "languageDefined"
},
and other languages you use I guess
In my case, it was the editor.autoIndent preference setting that was set to none. Setting it to advanced or full fixes the issue with jsdoc indent autocompletion on Enter.
Related
I have been trying to disable the keyword popup in VSCode, but the suggested method of adding "editor.suggests.showKeywords": false, doesn't work, as suggested in this post.
This is how it looks in my settings.json file, along with some other attempts that also haven't worked, commented out.
Any ideas on how to disable this?
I got it to work. I had the Pylance extension installed. By setting the languageServer to jedi, and switching to the following, I fixed the issue:
"Pylance": "python.languageServer": "Pylance"
I am using VSCode for coding my projects but while it adds parenthesis and curly braces in other types of files it doesn't auto adds in js files or JSX files
see here:
https://i.stack.imgur.com/Okl3d.gif
I have researched for it and I found that I need to change the Editor: Auto closing Brackets settings and I have set it to languageDefined but still it is not auto-closing the parenthesis
https://i.stack.imgur.com/eLOtJ.png
Please answer how to fix that
Actually, this is an issue defined by an extension... are you, by any chance, using copilot?
Apparently this is a bug in VSCode 1.57.x: https://github.com/microsoft/vscode/issues/127739
For similar issues just search "auto closing" in the issues: https://github.com/microsoft/vscode/issues?q=auto+closing
go to settings and edit settings.json
"editor.autoClosingBrackets": "always",
"[javascript]": {
"editor.autoClosingBrackets": "languageDefined"
},
I sometimes use VScode for plain text documents, however I'm constantly interrupted by suggestions to use particular words:
How can I stop this behavior for txt files? I would still like suggestions for code.
Via this VScode bug and various related bugs I've attempted the following:
"[txt]": {
"editor.quickSuggestions": false
}
However that does not stop the suggestions from happening.
Found the answer to this one myself, via this screenshot on a related bug - pasting it here to help others:
"[plaintext]": {
"editor.wordBasedSuggestions": false,
"editor.quickSuggestions": false
},
this worked for me:
command palette -> Preferences: configure language specific settings
under suggestions, go to Editor: Quick suggestions, and under the other item, change the value from on to off.
Note there were two other confusingly-named settings: Inline suggest: enabled and `Editor: Snippet suggestions". I had no idea what they meant, but they were not relevant here.
sorry if this question is dumb. I'm coming from Sublime Text and recently been using VSCode for my React projects. I noticed there was a Prettier status with tick or cross in the status bar but I've noticed it's not showing anymore and showing JavaScript Standard Style Instead. I've been trying to search for a way to make my Prettier works again by re-installing Prettier, install other extensions, all doesn't work at all.
The obvious sign I notice is printWidth option isn't working in my VSCode. I might have screwed up the configuration previously because of JS Standard but after nuked and re-installed VSCode it doesn't fix the issue at all. Any kind help or pointer is appreciated. Thanks in advance.
This is my .prettierrc.json. No other overrides.
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 80
}
Go to File -> Preference -> Settings and search for default formatter and select prettier - Code formatter
Or
In your vs code settings.json file add this "editor.defaultFormatter": "esbenp.prettier-vscode",
I've searched through similar questions, and couldn't find an answer. It's that box that keeps opening whenever I push Enter, and proceed to include another style component on my stylesheet.
Most of the times it covers a lot of the code when it appears, and this is kinda bothering me. Thanks in advance!
You could stop quick suggestions by adding the following snippet in settings.json
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
}
Or if you just want to disable only emmet abbreviations, you could do so by adding this property in settings.json
"emmet.showExpandedAbbreviation": "never"
More information about various intellisense and emmet abbreviations settings could be found in the following pages
VS Code intellisense settings
VS Code Emmet settings