Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Browsing all 98472 articles
Browse latest View live

VS Code rest-client extension: How to set variables from response automatically?

I'm working with the enxtension for vs-code: https://marketplace.visualstudio.com/items?itemName=humao.rest-clientI need set to variables automatically.How can I set variables automatically with data...

View Article


Prevent Visual Studio Code from replacing tabs with spaces on save

My problem is not present while editing a file, like here: Spaces to tabs in Visual Studio CodeVSC converts all tabs to spaces when I save the file. How could I stop that stupid behavior? This are my...

View Article


How can you hide Java compiler path VSCode?

When I run a java program in vscode's integrated terminal, the full java path displays as a large box of text. Is there any way to get ride of...

View Article

vscode.executeDefinitionProvider returns empty vscode.Location[] when tests...

I'm creating my first VS Code extension, but now I stuck while testing my extension automatically. If I run my automated tests out of VS Code everything works fine, but I want to run the tests also in...

View Article

VSCode or Eclipse for Java [closed]

My question is why all people use Eclipse or Netbeans IDE programming in Java when (with the right extensions) Visual Studio Code is equaly good (or better) than the others heavy IDEs? Could appear...

View Article


Change console in VScode

When I run a program in vscode, it runs in the Python debug console, however, I want it to run in the normal python console, as I have seen is possible.

View Article

Image may be NSFW.
Clik here to view.

Microsoft C# Extension for VSCode cannot find .NET Core SDK

Issue DescriptionI installed the .NET Core 3.1.0 SDK, tried to add this extension to VSCode and got the following popup:I'm quite sure I've installed everything correctly. After messing with this for...

View Article

Why my VSCode's interpreter is not working in Mac?

I have VSCode and I am trying to set up a virtual environment. First, I created all the venv properly. When I run in the Terminal is working and activated. However, it is not showing up in the VSCode....

View Article


How to pad out line to certain length using regex replace and snippets

// My Section -----------------------------------------------------------------The above is the desired result.Imagine this scenario//...

View Article


How to create a comment block of //'s around text of different lengths

I'm curious, if there's a way to create these blocks automatically around a text? Currently working in VS / VSCode projects./////////////////////////////////////////////////////////...

View Article

Is there a VS Code shortcut for creating a new separate file from selected code?

I work with large html files that I would like to fragment into separate files. The process of doing this is quite tedious as it requires copying the code, creating a new file, pasting it in the new...

View Article

How can I insert a snippet on a new line with vscode?

I'm trying to make a vscode snippet for python. Suppose I have a line of code like this:my_var = call_some_function() I'd like to double click on my_var to select it, hit a key, and it produces the...

View Article

Shortcut with multiple command in VSCode

I have an existing shortcut which maximize the terminal window, { "key": "ctrl+`", "command": "workbench.action.toggleMaximizedPanel" } I would like to add an additional command to the shortcut to...

View Article


Is there a VSCode action to close the sidebar if open, otherwise do nothing?

There's an action called workbench.action.closePanel that does exactly what you'd think it does; it closes the panel in VSCode if it's open, and if it's not open it does nothing. As far as I can tell,...

View Article

How do I navigate to the next squiggly in the current file or project?

Often when I make bigger refactorings in my TypeScript codebase, I'd like to be able to navigate to the next underlined TS compiler error to fix it, then move on further etc. If I use "go to next...

View Article


vscode: how to clear both the console and the terminal using the same shortcut?

I'm looking for a shortcut that would clear the debug console + the terminal, and that would work when my cursor is on the editor. I tried this code in the keybindings.json which only works for the...

View Article

VSCode keyboard shortcut for optionally triggering keepEditor when using...

VSCode by default binds cmd+p to workbench.action.quickOpen. Which is fine. My only issue is that when you confirm a quickOpen on a file using enter it opens the file in a “preview” mode (indicated by...

View Article


vscode insert date time each new line?

I would like to (ab)use vscode as a tool for some specific live-logging. For this purpose I would like to have it insert the current date, time at the beginning of each line. I did look here: How to...

View Article

Save and close tab keyboard shortcuts

quick question. I always find myself having open at least 10 tabs in vscode. I easily get lost in all my tabs and I feel it kills productivity. Is there a fast key binding to save and close a tab?Do...

View Article

VSCode: Jump to the end of line

I want to jump to the end of a specific line.When pressing ctrl/cmd + p, typing ":10" and hitting enter, I'm taken to line 10. Is there some setting or way to automatically go to the end of the line...

View Article
Browsing all 98472 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>