Questions tagged [vscode-extensions]

Use this tag for questions about the Visual Studio Code Extension API and extension development. Questions only about extension usage should use the [visual-studio-code] tag instead.

Questions about the Visual Studio Code (VSCode) Extension API and extension development. Questions only about extension usage should use the [visual-studio-code] tag instead.

If you have a question about extension development that isn't a good fit for the Stack Exchange model, use the VS Code Dev Community Slack channel where extension developers help each other out and you can ask questions and find support.

4227 questions
128
votes
3 answers

Where are the VSCode error logs for extensions?

When I get an extension error I have no way of knowing why the error happens.
Gyuri
  • 4,548
  • 4
  • 34
  • 44
83
votes
5 answers

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 provided. Can anybody point to any references or…
Rick Strahl
  • 17,302
  • 14
  • 89
  • 134
81
votes
9 answers

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#magic-completions Vscode shows notification as…
wowonline
  • 1,061
  • 1
  • 10
  • 17
81
votes
12 answers

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 up. Often there are so many spell checker errors…
Jens Madsen
  • 1,154
  • 1
  • 10
  • 18
72
votes
10 answers

Python auto import extension for VSCode

Is there a Python auto import extension/plugin available for VSCode? By auto import I mean, auto import of python modules. Eclipse and Intellij has this feature with Java.
65
votes
5 answers

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 that the Electron API is not accessible from a…
Mark M
  • 1,807
  • 2
  • 21
  • 40
51
votes
20 answers

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 I installed and set VSCode formatter 'black'…
49
votes
11 answers

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 ContentProvider(); const providerRegistrations =…
Eldy
  • 1,027
  • 1
  • 13
  • 31
46
votes
10 answers

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, I have to manually run this command. Is there is…
Sébastien
  • 1,749
  • 1
  • 15
  • 19
46
votes
4 answers

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 boilerplace and ran through the example that VSCode…
rnarasap
  • 461
  • 1
  • 4
  • 3
44
votes
1 answer

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 directly from a specific repo/branch on GitHub?
Andrey Mikhaylov - lolmaus
  • 23,107
  • 6
  • 84
  • 133
44
votes
5 answers

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?
DavidA
  • 2,053
  • 6
  • 30
  • 54
43
votes
5 answers

Change Integrated Terminal title in vscode

We can open command prompt in vscode by using the Integrated Terminal feature in View menu. We can even open multiple terminals as shown below: Is there any way I can change the title of the terminal ? 1: cmd.exe will be build terminal 2:…
Gangadhar Jannu
  • 4,136
  • 6
  • 29
  • 49
41
votes
6 answers

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
38
votes
2 answers

Set icon or logo for extension in vscode

I've created an extension for vscode (not yet published, only installed localy), how can I set an icon to be seen in the section of the extensions in vscode?
asv
  • 3,332
  • 7
  • 24
  • 47
1
2 3
99 100