Questions tagged [visual-studio-code]

Visual Studio Code is a cross-platform source code editor from Microsoft.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

VS Code remote development: How to install code server in a custom directory?

When using the remote development plugin for VS Code, the VS Code server will be installed under ~/.vscode-server. But my home dir is strictly limited to 1GB and it seems to be insufficient for VS ...
0
votes
0answers
12 views

Can VS Code extensions pollute my system installs?

I noticed that one of the VS Code extensions — Todo Tree — relies on ripgrep. That left me wondering: Are extensions allowed to run scripts which can have side-effects beyond the ~/.vscode/extensions ...
0
votes
0answers
10 views

How can I get the name of the arguments a vscode command receives?

For instance, git.clone is the id of the vscode command that clones a project from a url. In the vscode official website, (https://code.visualstudio.com/api/references/commands) there are only some ...
0
votes
0answers
4 views

xdebug in VSC in “Remote WSL” mode: should it respond through telnet client?

Some context: try to set up Xdebug for VSC at Windows to debug app in docker through WSL2. But question is way more focused. So here is debug task in launch.json { "name": "Listen for ...
0
votes
0answers
10 views

How to put quotation marks around multiple elements using key combo at once

My current use case, in vscode I want to create launch.json with multiple args. They should be of the following form: args: ["arg1", "arg2", ... "argk"] and I have all ...
0
votes
0answers
14 views

SSH ProxyJump checks for id_rsa on local machine instead of Proxy server

I want to set up a SSH connection to remote server that is behid a proxy within the ~/.shh/config file. Curently my file looks like this: Host Proxy HostName proxy_server_address User JhonDoe ...
1
vote
0answers
20 views

Visual Studio Code Terminal Execute Batch on Startup

I am using Visual Studio Code with it's integrated CMD-Window very often - however, I have to execute a specific Batch script right in the beginning before I start to work with the integrated CMD ...
0
votes
0answers
50 views

Notebook section inside VSCode settings, What is that?

As you might notice, one of the features shown under "Features" section is 'Notebook'. I tried searching with Google, but I only find information about the Jupiter plugin, which is not what ...
0
votes
0answers
38 views

Snippets or snippet-like feature to template files in VSCode?

VSCode snippets are super useful for creating some boilerplate code. So for example, I might create a snippet that produces boilerplate code for a new react component like: import React from "...
0
votes
0answers
10 views

Switching focus between peek view editor and list of files/references

Is there a way to switch between the editor and files/references sidebar part of the peek view editor in Visual Studio Code, without using the mouse? Shortcut to invoke the peek view on mac is for ...
0
votes
0answers
8 views

vs code opens the jupyter ipynb file as source code, not interactive notebook

When I try to use vs code to open a jupyter ipynb file, it opens as a source code, and not interactive notebook. How can I make it open as an interactive notebook?
1
vote
1answer
33 views

How to remove the 'PS' message that appears in the terminal after running code in VsCode

I am currently taking Java lessons and I am practicing on VsCode, I wrote this code: class Simple{ public static void main(String args[]){ System.out.println("Hello World!"); ...
0
votes
0answers
33 views

No packages in any requested group available to install or update on Centos 7 when installing XFCE

I have a GCP instance running Centos 7 and am trying to follow the instructions here to get vncserver running but I keep getting: Maybe run: yum groups mark install (see man yum) No packages in any ...
2
votes
0answers
169 views

visual studio code: how can i launch a command to a new terminal from a command

I want to run two concurrent commands using npm run in visual studio code, each one in a separate terminal tab in vscode. I tried doing this: start 'command a' && start 'command b' but that ...
0
votes
0answers
7 views

Command prompt gets stuck on pagers

Whenever I run a command that runs a pager such as git diff in cmd, the command prompt gets stuck in the pager and I can't get out without closing the window. I've tried pressing q, ctrl-z, ctrl-c, ...
1
vote
0answers
34 views

VS Code bracket, quote, etc completion

I may be using the wrong search terms but can't find an answer to my question. In VS Code, as in many editors, if I type a ', ", {,[, (, etc the editor will automatically complete the leading symbol ...
0
votes
0answers
17 views

echo $USER returns blank on mac

Just as title says - 'echo $USER' in bash ends up blank. Unsure what else is needed to fix, can't find a solution. Working in functioning repo. Found this error because i was trying to update data ...
1
vote
0answers
14 views

How do I get default theme, font and UI of Visual Studio Code in Visual Studio 17?

I understand Visual Studio is an IDE and Visual Studio Code is an "editor" but writing code in Visual Studio Code is damn faster and easier. I just love the UI. I feel there might be an extension in ...
1
vote
0answers
44 views

Can't select text using keyboard in Visual Studio Code

For some reason, I can't select text using the keyboard in Visual Studio Code (version 1.45.1 on macOS 10.15.4). If I press Shift+right, the cursor moves right, but the text isn't selected. If I: ...
0
votes
0answers
24 views

Visual Studio Code autoformat: change the position of the closing bracket

Currently I use prettier to auto format my file on save automatically. However, I want the closing bracket to be formatted differently Sql example: -- current auto-format behaviour create table A ( ...
0
votes
0answers
60 views

VSCode keyboard binding to only close window, but close app if last window

For VSCode on Mac, I want the cmdq shortcut to both: Close one window at a time (the default behaviour is to close all of them and quit the app) Quit the app if last window closed (rewiring cmd+q ...
1
vote
3answers
62 views

How can I continue working on my code from another computer?

I'm new to programming in general, and I'm currently working on a little game project in Python + pygame. One day I might want to work on my laptop, and the other day on my desktop. How could I make ...
0
votes
0answers
14 views

how to show git diffrent branch line in VSCode by Version History extention?

I face a funny problem. previously I remember that Git History extension used to draw a line for my branches but now it is not happening for me or on my friends PC. the top image shows the previous ...
0
votes
1answer
50 views

VSCode is asking to open external website every time I open it

Every time I open Visual Studio Code, the dialogue box shown on the image below comes twice asking me to open an external website which is very irritating during work. Can you please help me how to ...
0
votes
0answers
23 views

Shortcut to wrap statement with Console.WriteLine

Given a statement on a single line (line 42) like: Add(1, 2); that I want to transform to Console.WriteLine(Add(1, 2)); my current workflow is to press Ctrl-G 42 Enter Shift-End LeftArrow Ctrl-X c ...
0
votes
0answers
10 views

VS Code Git loses remote connection, shows only master branch with thousands of untracked changes

I was working in VS Code when I noticed it said I was on the 'master' branch instead of the feature branch I was working in. When I went to change to my branch, ALL the other branches were missing. VS ...
0
votes
0answers
10 views

Which shell do VS Code extensions use?

here,I got the problem that the same command run in the Windows CMD as run by the clang-tidy extension works for CMD but not in VS Code. Therefore I ask myself if (and if yes, which) another type of ...
0
votes
0answers
8 views

What does the red text mean when you type on a file name in the directory tree in Visual Studio Code?

When your cursor is on a file in the Explorer in VSCode and you begin typing, it enters the text with a red background. It seems to be some kind of filter, etc. What is this feature and how can one ...
0
votes
1answer
38 views

Running bash script inside VS Code with Cmder terminal

I've just installed VS Code and added Cmder as a default terminal on a new Win10. I am trying to import my git for Windows .bashrc aliases to be used with Cmder. So I've added them to user_aliases....
0
votes
0answers
12 views

How to cd to a directory by default using VSCode ssh?

When using Remote-SSH: Connect to Host... in VSCode, is there a way to specify a directory that we want to Open Folder by default?
0
votes
0answers
11 views

How to change VS Code icon within VS Code

I would like to change the icon of VS Code within VS code to match my Color Theme. I am talking about this blue icon: Anybody knows how to change that? ... and as a bonus, how can I change it from a ...
0
votes
0answers
22 views

Column selection is set by default in VSCode

When selecting text in vscode [os x] it uses column selection, i need to press option while selecting to switch to line selection, how do i reverse this?
0
votes
1answer
11 views

Navigate variables in Visual code for Mac

I am using visual code for Mac version to write python code for several projects of mine. I have noticed that while in my Linux system when I am using VS code I can navigate to the definitions of ...
0
votes
0answers
177 views

How to configure static IP address for a Hyper-V VM (Ubuntu 19.10 Quick Create) to avoid updating ssh config after each reboot?

I'm using VS-Code remote development plugin to edit code on a hyper-v VM (which is a Ubuntu 19.10 - quick create) which is running on Windows 10 on my Laptop. The VM uses hyper-v's default switch for ...
0
votes
0answers
19 views

How to automatically add 2 spaces for every enter in Markdown document in Visual Studio Code?

I hate the markdown rule of newline/break not treated as newline. If I can change that rule for my personal .md use I will use it. I use md predominantly for personal note and that rule makes .md ...
1
vote
2answers
130 views

Visual Artifact on Visual Studio Code

Windows: windows 10 home (latest update) Graphics Card: RTX 2060 (driver updated) RAM: 2×8GB I am having this artifact. And It is just random. I don't know why.. If I move the cursor to it, it ...
1
vote
1answer
53 views

What does /* next to file names mean in a code editor?

I noticed some files have /* next to them in my code editor (composer.json and style.css. It looks like comment code... What does it mean? EDIT - I am not talking about css comments. Please refer to ...
0
votes
0answers
46 views

VSCode Live Share, can a users display name be changed?

Liveshare for VSCode appears to get the users name from either github or a Microsoft account. Can I change the name as displayed on my view of each user?
0
votes
1answer
70 views

Unclickable region on VSCode UI when installed on Chromebook / ChromeOS

I have installed VSCode on my Lenovo Yoga Chromebook and I am unable to use the mouse in the bottom right corner of the UI. The problem has persisted through restarts, toggling the Terminal window, ...
1
vote
0answers
53 views

PowerShell window all black when run as administrator

All I did was run powershell as administrator. Its black. I can't see anything. I have somehow set the transparency for it, but that is beside the point. However, I notice when you right click on ...
1
vote
1answer
96 views

Syntax highlighting for embedded languages in VS Code

I am busy making my own grammar extension in Visual Studio Code. The language is called Snake, say, and the grammar kicks in when a file of the kind "*.snk" is opened, for instance "hello-world.snk". ...
0
votes
0answers
6 views

How to show only files with match in VsCode?

Often when I search for something I would either: Search in one type of file only Exclude certain filetypes Show only filenames with matches Unfortunately my search bar often looks like this (with ...
0
votes
0answers
18 views

VSCode cannot find header files that are on a virtual server

I'm working on some C++ with VSCode. It's for a website and I'm running it locally with Lando. I'm getting errors that VS can't find libraries header files. I suspect that it's because Lando has ...
0
votes
0answers
75 views

error: No module named 'numpy',after install it

After I install numpy in path (C:\Users\hp\AppData\Local\Programs\Python\Python38>pip install numpy), I still have the same error (error: No module named 'numpy) when run simple program with numpy, ...
0
votes
0answers
8 views

VsCode: Hotkey to search settings?

I've seen people in videos hit some sort of hotkey, then a popup dialog shows where they can type in the name of different settings/shortcuts and hit enter. What's the hotkey to open that?
1
vote
0answers
39 views

Parenthesis are appearing strangely in some software eg chrome's element inspector and VS Code

Whenever I type parenthesis in some software, such as VS code and Chrome Inspector, I get this long Vertical Line . I do not get this problem in notepad or word.
0
votes
0answers
38 views

Using VS Code and Git Bash on Windows 10 with OpenSSH Agent

I've recently set up the Open SSH agent on my Windows machine, and created the keys using: ssh-keygen -t ecdsa -b 521 ssh-add I managed to set up my WSL to use this agent when SSHing from it (using ...
0
votes
1answer
35 views

Replace header text with excel VBA

I'm trying to modify my current code to replace specified words in a MSWord document. The whole idea is working but only for the body of the document and nothing happening in the header or in the ...
0
votes
1answer
80 views

Is there a way to use windows keymap/keybindings with VS Code on Mac OS X?

I use a windows keyboard with my mac and the cmd key is mapped to my super/windows key. Using ctrl+v feels more natural in text/code editing compared to super+v. How can I revert to windows key ...
0
votes
1answer
20 views

How do I indent with multiple cursors to the same horizontal position in VSCode

I'm looking for an easy way to do this in VS Code. (I'm writing an interpreter so there's lots of boilerplate!) One strategy I found is to add too much space then ESC and multi-line down again, ...

1
2 3 4 5
13