Questions tagged [visual-studio-code]
Visual Studio Code is a cross-platform source code editor from Microsoft.
689
questions
0
votes
1
answer
33
views
What is Fedora Workstation's system font?
I am publishing a couple V.S. Code extensions, and I already have a couple available for download in "Microsoft's Visual Studio Marketplace". Two of the extensions contribute a font-family ...
0
votes
1
answer
14
views
Key binding Ctrl + Shift + C opens a new external terminal in vscode/codium on Linux, how to change the shortcut?
In Visual Studio Code / Codium on Linux, the key binding Ctrl+Shift+c opens a new external terminal. This does not work together with vscodevim extension where I often need to copy to the system and ...
-1
votes
0
answers
25
views
How to make VSCode use declared encoding within XML files?
Context
XML files very likely declare their used character encoding, which is not properly taken into account by VScode compared to other editors. While in the past there was very limited automatic ...
0
votes
0
answers
14
views
MSYS2, MingW64, Pacman Packages and vscode or visual studio : How would i configure a project space for an installed package with pacman [closed]
I have installed some packages with pacman - specifically ogre with pacman using MSYS2.
I was wondering how would I configure my visual studio or vscode environment for any of my installed packages?
I ...
0
votes
0
answers
17
views
VSCode devcontainer failing when docker build takes some more time
I have some problems with devcontainer.
My setup is simple, .devcontainer folder with devcontainer.json:
{
"name": "Ubuntu",
"build": {
"dockerfile&...
0
votes
1
answer
31
views
How to easily disable vscode's alternating bracket and parenthesis highlighting
I just recently updated my vscode installation to version 1.67.0, and am seeing what in my opinion is very aggressive syntax highlighting of all brackets and parenthesis regardless of what theme I ...
0
votes
0
answers
10
views
Invoking make.exe fails while just make compiles perfectly
So I am trying to configure make with vscode and vscode calls make s "make.exe".
When I make run from the terminal its all good, but when I make.exe run
clang-8: error: linker command failed ...
0
votes
1
answer
24
views
How would I visually alter only the Capital letters in my editor?
I find camel case difficult to read at times and have been scouring the internet for a way to be able to specifically alter the visual appearance of strictly the capital letters in camel/pascal case ...
0
votes
0
answers
22
views
What does "Jackson 2 is on the classpath" mean?
I'm learning a spring tutorial, which says
Because Jackson 2 is on the classpath, Spring’s MappingJackson2HttpMessageConverter is automatically chosen to convert the Greeting instance to JSON.
I ...
1
vote
0
answers
15
views
How to change download location for VS Code extensions?
I'm having difficulty installing and updating extensions in VS Code on my work computer. When I try, I get:
Error while updating 'PowerShell' extension. Please check the log for more details.
I'm ...
3
votes
1
answer
51
views
How to change syntax highlighting of URLs in Visual Studio Code
One answer is to just turn off linkifying of URLs altogether:
"[html]": {
"editor.links": false
},
But what I'm trying to do is keep that feature and turn off the actual ...
0
votes
0
answers
7
views
How to I undo already commited changes only for a chosen line = at "line level" (not the whole file) in codium/vscode?
Use case. I have committed a file with many changes, and I forgot to make a new commit for a much smaller side-task - to clean the file from some personal outdated e-mails I found in there, which has ...
0
votes
1
answer
36
views
Two seemingly identical VS Code Linux installations display fonts differently
I have two laptops, both running the same version of latest Manjaro. The same version of visual-studio-code-bin from AUR is installed. Both use the same font for code. Yet, they render Unicode symbols ...
0
votes
1
answer
20
views
How to pass an argument and file variable to vs code
For certain reasons that I don't fully understand we have to start VSCode with the --in-process-gpu flag on our work laptops (without the tag it opens the outline of the window and then pegs the CPU ...
0
votes
1
answer
26
views
Cannot find g++ after msys2 install
I want to install g++ so I can compile and run C++ code in VScode.
I started by trying to follow the VSCode-provided guide which states I need to install mysys.
I tried installing msys2 per the given ...
0
votes
0
answers
10
views
VSC - Virtual Workspaces (Github) Can't upload folder
I'm using an extension called "Remote Repositories" (and "GitHub Repositories" got auto-installed too) to browse one of my GitHub repositories. For the most part, everything's been ...
0
votes
1
answer
83
views
Visual Studio Code index files
Is it possible to let Visual Studio Code to index file content?
Right now in my C code project when I want to find some declarations or calls or just search for string in content of files in the ...
0
votes
0
answers
9
views
Can I launch debug with optional (maybe selectable) arguments?
I'm working on a project running with Lerna in VSCode
Now I'm thinking is there any configuration or extension that allow me to start a lerna project with optional and maybe selectable scopes.
For ...
0
votes
0
answers
11
views
VSCode Double SSH with dynamic PORT and IP
VSCode Double SSH with dynamic PORT and IP
I can use below configs in my VSCode ssh config file if the PORT & IP are known before-hand
Host serverA
HostName serverA_ip
PreferredAuthentications ...
1
vote
0
answers
66
views
error creating registry key: HKEY_CURRENT_USER\Software\Classes\.ts\OpenWithProgids. RegCreateKeyEx failed: code 5 Access denied
When I open VSCode on Windows 10, I get the following pop-up window message and it requires an action:
error creating registry key:
HKEY_CURRENT_USER\Software\Classes\.ts\OpenWithProgids
...
1
vote
0
answers
18
views
How can I disable moving / animated pictures in documentation?
I would like to learn Visual Studio Code, but I cannot get past its "modern" and "engaging" documentation. The very first screen you get when I browse to this URL has a moving ...
1
vote
0
answers
14
views
VS Code: How to move cursor automatically from editor to terminal when i hit run in VS Code?
I don't want any shortcuts, I tried "code runner" extension but its launches in the OUTPUT section and the cursor starts at the beginning of the text and I can't type anything:
0
votes
1
answer
35
views
Autohotkey script doesn't work when VSCode focused
The default behavior for the shortcut <Windows Key + Number> is to open the respective application on your taskbar. I have this behavior overridden by the AHK script posted here, which changes ...
0
votes
1
answer
18
views
Using VScode with Rust-Analyzer on a remote system, "No definition found" missing glibc?
So I'm working with Rust utilizing VSCode as my IDE. One issue I'm having is with Rust-Analyzer, which appears to be the currently recommended extension for rust support.
I have two different systems, ...
0
votes
0
answers
40
views
How do I disable VS Code "Do you want to synchronize the Java classpath/configuration" once and for all?
With VS Code, every time I create a new java project and change the pom.xml of it this annoying popup shows up.
I know I can simply click "Never" though, I really don't want to see it over ...
0
votes
0
answers
15
views
commands opened editor window closed but still waiting process exit
I'm using vscode on win10. When I run git merge with conflicts or kubectl edit or anything in windows powershell/terminal/gitbash that internally invokes the editor, the default editor notepad is ...
0
votes
1
answer
9
views
Doing in line editing in VSCode using the Keyboard Only?
In VSCode we can create multiple cursors inside a single word or sentence by select alt or option (Mac) and then clicking where we want the additional cursors.
Is there a way to use the keyboard only ...
1
vote
1
answer
88
views
how do I make vscode terminal window clear previous spring boot output automatically?
I've managed to setup VS Code on my win10 with Extension Pack for Java and
Code Runner I also enabled "clear previous output"
each time I right click and "Run Java",
VS code dump ...
1
vote
0
answers
17
views
How stop multiples projects in vscode with the launch.json
I have in my launch.JSON a configuration that allows me to start two different API projects at the same time (Web API One and Web API Two), both are components of the same project, everything works ...
0
votes
0
answers
14
views
Starting VSCode with WSL Distro (from command line.)
is there a way to launch vscode from command line, and to tell it to start a new WSL window (using the default WSL distribution.)
I don't see an option in the CLI, and regardless of whether I launch ...
0
votes
1
answer
23
views
Grouping and Minifying Python Modules Using Visual Studio Code
If I want to group and minimize the lines of code I have, just click on the arrow for that service:
And if I want to do the same thing by grouping and minimizing the list of modules that I import, is ...
0
votes
0
answers
11
views
Default directory for zsh (cygwin) terminal is home, not working directory VSCode on Windows
I have setup custom profile for zsh via Cygwin in VSCode as below:
"terminal.integrated.profiles.windows": {
"zsh": {
"path": "C:\\cygwin64\\bin\\bash....
0
votes
0
answers
17
views
How to I remove a column in the editor area of vscode?
Somehow I accidentally pressed a key combination and now my vscode editor area has a narrow column which all code wants to auto format within. How can I remove this column seen on the right?
1
vote
2
answers
23
views
Outsource some VSCode settings from `settings.json`?
Is there a way to sort of exclude or "outsource" some setting from settings.json in VSCode?
I have set up my settings.json to be auto-synced with my Nextcloud, so I have the same settings on ...
0
votes
2
answers
78
views
How do I change the color of the icon at the left of a file tab in VS code?
The red round icon pointed out by the red arrow bothers me.
I've tried all the themes shipped with vs code and some other extensions, none of them changes the color of that annoying icon.
How do I ...
0
votes
0
answers
15
views
Save changes in 2 different folders using VSCode?
I would like to setup 2 folder in my local hdd so I can: code/edit files in folder1 with VSCode, and from there, only when I decide to save changes, they are applied to folder1 + folder2?
Folder1 is ...
0
votes
0
answers
67
views
Pylance consuming too much memory, how to enable Jedi to get around this issue?
My Pylance when I leave my VSCode running a Python file, every few minutes the number of ram memory used increases, reaching 100% usage on the pc.
I've seen some people indicating activating Jedi to ...
2
votes
1
answer
76
views
How do I turn the "character count" off in VS Code?
I have no idea what this is or how it got turned on. It wasn't "on" when I turned off my comp on Friday, but it's here today. How do I get rid of this?
18
votes
1
answer
4k
views
Why does the same eight-character hexadecimal code show a different color in different software?
I want to pick up the color #FFEAF0FF from the Visual Studio color scheme to Visual Studio Code:
But when I put this hexadecimal code into Visual Studio Code, it becomes a different color:
They are ...
-1
votes
1
answer
45
views
Install VS Code extensions in another directory
I have very little local disk storage and I need to install the VS Code extensions to another directory. Is it possible to do it? How can I do it?
0
votes
0
answers
49
views
VS Code custom grammar injection doesn't work
I am trying to inject custom grammar's into an existing language, but I can't seem to get it to work.
package.json:
{
"name": "custom-grammar",
"displayName": "...
0
votes
0
answers
14
views
How to change text cursor for VSC pwsh and Python REPL?
When debugging, running code or using REPL VSC tranfers everything to PowerShell. Default text cursor style for VSC terminal is solid rectangle which is very unconvenient. Is it possible to change it ...
0
votes
2
answers
30
views
Is there a keyboard shortcut to select text at random location and climb to the top with one click?
As you can see, there are more than 70000 lines, it would take a lifetime to climb to the top using SHIFT + Page Up or SHIFT + UP ARROW.
Is there any shortcut to getting to the top quickly?
0
votes
0
answers
120
views
How to disable syntax errors on ansible template files?
I am using VSCodium with the Docker plugin. When I have a docker-compose file in an ansible
template folder, the linter will show syntax errors whenever it encounters jinja2 template-variables.
The ...
0
votes
0
answers
7
views
Is there a way to create files in a VSCode-snippets-esque way?
VSCode snippets I love and use a lot.
But what I find, is for React development for example, I'll have a file structure like:
/MyComponent
MyComponent.tsx
MyComponent.test.tsx
MyComponent.style....
0
votes
0
answers
338
views
Visual Studio Code unable to read file
So this just happened out of nowhere, I'm currently working on Linux Mint OS where I have my remote project open from File Manager and I open the directory with code, put VS code suddenly can't open ...
0
votes
1
answer
27
views
Is it possible to get rid of the badge reminder from VS code?
The badge at the bottom right of "Accounts" button reminds me to sign in.
I don't want to sign in and I don't need it to remind me of that.
Is it possible to get rid of the badge reminder ...
0
votes
1
answer
36
views
Question marks appear even when opening the file in correct encoded format
I have been looking around on StackOverflow and here in the hopes of finding out as to why certain characters turn into question marks. To be more precise: It is often letter such as é and ó etc.
I ...
0
votes
0
answers
25
views
Is there a way to let a SQL formatter change only a selection within a file in Visual Studio Code / vscode / Codium?
In VIM, you can do this: setup your config so that you can choose just a selection to be reformatted in SQL. See Is there a way to let sqlformat or another SQL formatter change only a selection within ...
2
votes
1
answer
156
views
How to change the default comment character in Visual Studio Code?
While writing a comment in .ini files, VS Code gives me the comment ; when what I need is a #. Is there a setting somewhere where I can replace that character?
This is similar issue but not a ...