4,679 questions
147
votes
6
answers
135k
views
Where are the VSCode error logs for extensions?
When I get an extension error I have no way of knowing why the error happens.
141
votes
14
answers
127k
views
VS Code: enable inline spell checker, but disable spell check in the "Problems" panel
I use the code spell checker for VS Code. I would like to disable the spell checker warnings/errors in the "PROBLEMS" panel (standard keyboard binding Ctrl+Shift+M) where "more serious" problems show ...
124
votes
17
answers
136k
views
rust-analyzer failed to discover workspace in vscode
I'm starting to learn the Rust language and I have an issue with rust-analyzer vscode extension.
It doesn't provide code completion as shown in the link: https://rust-analyzer.github.io/manual.html#...
111
votes
5
answers
195k
views
How do I open a browser window in a visual studio code extension?
I am writing a visual studio code extension and I'd like to be able to open a browser window with a specific url in response to a command. I know that Electron has a BrowserWindow class but it appears ...
101
votes
11
answers
120k
views
Python auto-import extension for VSCode
Is there a Python auto-import extension/plugin available for VSCode?
By auto-import I mean automatically importing of Python modules, so if you type sys.argv then it should automatically import the ...
97
votes
5
answers
77k
views
Create Custom Language in Visual Studio Code
Is there a way to extend the supported languages/grammars in Visual Studio Code?
I'd like to add a custom language syntax, but I've not been able to find any information on how language services are ...
86
votes
26
answers
193k
views
Formatter black is not working on my VSCode...but why?
I have started using Python and Django and I am very new in this field.
And, this is my first time to ask a question here...I do apologise in advance if there is a known solution to this issue...
When ...
61
votes
5
answers
49k
views
How to show the extensions installed in Visual Studio Code?
How can I show the versions of the extensions installed in Visual Studio Code?
Also, but unrelated, does anyone know the maximum file size that can be handled by VS Code?
61
votes
4
answers
11k
views
Is there any way to disable GitHub Copilot comment suggestions?
I really like Copilot however its comment suggestions can be nonsensical and really distracting.
Is there any way to leave the code suggestions on but turn Copilot off whenever I'm editing/adding a ...
58
votes
18
answers
192k
views
why is my github copilot not working all of a sudden? [closed]
I have been using copilot for a while now, and one fine day on opening VSCode this error appeared.
[ERROR] [default] [2022-04-09T08:38:10.995Z] GitHub Copilot could not connect to server. Extension ...
57
votes
10
answers
66k
views
VSCode: How to run a command after each terminal open?
On Windows I have to run the command start-ssh-agent.cmd on each new terminal session I open. My development environment is VSCode, and I open a dozen new terminals each day. After each terminal open, ...
57
votes
6
answers
37k
views
How to write to log from vscode extension?
I am attempting to develop an extension with a language-server for VSCode. I am trying to figure out how to write text to log from language-server part of the extension. console.log produces nothing
54
votes
13
answers
72k
views
Command not found in VSCode extension
I am trying to create a VSCode extension. This extension provides two commands, never mind their implementation:
export function activate(context: ExtensionContext) {
const provider = new ...
54
votes
1
answer
21k
views
Install extension from a specific repo/branch on GitHub?
I'm using a VS Code extension that has a bug. It has been fixed in a pull request on GitHub, but the repository seems to be abandoned and the PR is not getting merged.
How do I install an extension ...
51
votes
4
answers
39k
views
How to run a system command from VSCode extension
I am trying to create a simple VSCode extension to run a set of commands when I open a folder. Basically these commands will set up our development environment. I have started off creating the ...