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
0 answers
19 views

How to be able to access all folders on Ubuntu when using Visual Studio Code Remote?

I have my user which seem to be in the sudo group: myuser@server:~$ groups myuser myuser : myuser adm cdrom sudo dip plugdev But when I use Visual Studio remote with SSH, it doesn't give me the ...
Stackerito's user avatar
0 votes
0 answers
8 views

How to resolve python modules in another folder in workspace [migrated]

I am trying to figure out if its possible to configure VS Code in such a way that I have multiple repos loaded in a workspace and I want to have the editor with a file loaded from one folder able to ...
LhasaDad's user avatar
  • 153
-1 votes
0 answers
94 views

How do I get my terminal to work in VS Code? Exit Code:2, doesn't allow me to type anything

I'm having an issue with the functionality of the VS Code terminal. Whenever I would run a piece of code via the terminal, the terminal would operate for several seconds and disappear. I would then be ...
Jayloneal's user avatar
1 vote
0 answers
28 views

Ubuntu (Unity) opens click on USB stick icon with VS Code

I have the strange issue that when i plug in a USB stick, and click on the Icon in the taskbar, it opens the contents with VS Code. How can i change that back to the default "nemo" ...
Marc's user avatar
  • 351
0 votes
1 answer
74 views

Connecting through SSH in VS Code crashes my web server

I have a hosted web server and I would like to SSH to it from Visual Studio Code. I have a clean installation of it and the Remote SSH is literally the only plugin it uses. I have created a SSH ...
Ondrej's user avatar
  • 189
0 votes
1 answer
15 views

vscode will not launch, no diagnostics

Visual Studio Code will not start. I tried killall code; code --verbose --user-data-dir=/tmp/remote --disable-gpu --no-extensions (/tmp/remote is a new empty directory) to get some diagnostics; ...
Joshua's user avatar
  • 824
1 vote
0 answers
55 views

VS Code IntelliSense not working for Modules (PowerShell 5.1)

I know a lot of people are reporting various issues with vscode intelliSense and that the feature is buggy at best(?), but I'll still try to ask a question. Because - it has, for the most part, worked ...
Morten's user avatar
  • 133
0 votes
0 answers
38 views

Error when trying to install extensions via VScode on my Chromebook: “ Error scanning user extensions: Unexpected token '#', "#!/bin/bas"... ”

When I am trying to install extensions within VScode on my Chromebook. It shows me an error message"please check for the log details. When I clicked on the log, the message was: 2024-03-02 15:03:...
Pranay Krishna's user avatar
0 votes
0 answers
64 views

Git Bash doesn't display characters correctly, using Visual Studio Code's integrated terminal

I use Git Bash as the default terminal profile on Windows. When I execute this command, I get the below output: memlab run --scenario tests/oversized-object/index.js > 'command' �����ڲ����ⲿ���Ҳ���...
Lin Du's user avatar
  • 101
0 votes
0 answers
16 views

Keybindings for multiline edit in VS Code inside a Hyper-V VM

The CTRL+SHIFT+ALT with PgUp/PgDn function to multiline edit in VS Code seems broken inside a Hyper-V VM of Windows 10 (this is when I am inside a vmconnect.exe session. I can't think of a particular ...
YorSubs's user avatar
  • 909
-1 votes
1 answer
162 views

Prevent extensions installation

I work in an IT department, and we allow the use of vscode. However, certain extensions do not suit us within the framework of our security policy. We would like to prevent users from installing all ...
Albatros's user avatar
1 vote
0 answers
27 views

Trying to get tab in normal mode(VSCode using the vscode-neovim extension) to move to new cell in a markdown table

I'm seeking assistance with the VSCode-Neovim extension to enhance navigation in markdown tables. The current markdown extension that I am using is takumisoft68/vscode-markdown-table, which has this ...
Varity Colgate's user avatar
0 votes
0 answers
22 views

Does Visual Studio Code have an equivalent to CLion's CMake Profiles?

I'm following along this tutorial to learn CMake. In the tutorial, the instructor demonstrates encapsulating the setting of a CMake variable (i.e. a -D command line argument) in the Settings > ...
StoneThrow's user avatar
  • 1,177
1 vote
1 answer
48 views

NUL characters appear at the end of some files sometimes

Since I am using Synology to backup my files and sync them between devices, I sometimes get NUL characters at the end of my files and sometimes 2 or 3 lines are deleted randomly at the end of the file....
ihaveaquestion's user avatar
2 votes
1 answer
193 views

Install Perl on Windows for LaTeX Packages Without Dependency Issues

I'm currently facing challenges with installing Perl on my Windows system, which I need for handling specific LaTeX related packages. My journey so far has led me through a series of issues, and I'm ...
Foad's user avatar
  • 626
-2 votes
1 answer
567 views

How to open a remote SSH MobaXterm folder with VSCode

With MobaXterm on Windows, I am able to open a SSH remote file with VSCode just by double clicking it (after that I set this is my default text editor). However, I am not able to open a folder and all ...
JKHA's user avatar
  • 181
0 votes
0 answers
312 views

Can’t connect to SSH

I'm trying to get in to the backend of my website in VS Code, but every time I write the password it says could not establish connection to ssh.mydomain.dk I succeeded with log-in in the terminal, ...
Celeste Holmberg's user avatar
1 vote
1 answer
47 views

VS Code vs PS Terminal (Take 2)

This is my 2nd post of this. For some reason the original was closed without an answer. I have a little PS form I'm making to try and make my day life a little easier. So, I created a PS form with a ...
Dale's user avatar
  • 43
2 votes
1 answer
6k views

Visual Studio Code: Updates are disabled because you are running the user-scope installation of Visual Studio Code as Administrator

I run my Visual Studio Code using "Run as Administrator" While Visual Studio Code is open I get this message: Updates are disabled because you are running the user-scope installation of ...
Nate Anderson's user avatar
0 votes
1 answer
377 views

Copy output from output window in vs code

I've a big output that I want to copy but right click->copy only copies a single line.
Shub's user avatar
  • 160
0 votes
1 answer
472 views

VSCode Integrated terminal pointing to different python version

I'm trying to get a Python Venv setup and configured to use VSCode's integrated terminal and Code Runner. However, both seem to be using the wrong Python version. It almost seems like it's using a ...
HandyGold75's user avatar
0 votes
1 answer
623 views

I can not start Microsoft Visual Code on Ubuntu 22.04 anymore

I use Visual code version 1.85.1. Even after downgrading to version 1.79.2 Visual Code does not start. I neither get a message why I can not start Visual Code. Does anyone have a suggestion how to fix ...
user2588998's user avatar
1 vote
0 answers
156 views

Unexplained terminal behaviour with VS Codium

I've recently swapped from VSCode to Codium and I'm having some real trouble setting up the terminal. It has some really strange behaviour, almost like it's in a chroot or something. For example; # ...
Tom's user avatar
  • 111
1 vote
0 answers
205 views

Jupyter Slideshow in VSCode

I am trying to edit and present a slideshow inside of VSCode using Jupyter Notebooks (on a Windows 11 computer). I can make Jupyter notebooks, and I have the Jupyter Slide Show extension installed in ...
Addem's user avatar
  • 165
1 vote
0 answers
51 views

Why does zsh navigation behave differently in the VS Code terminal vs macOS terminal?

When I am using zsh in the inbuilt VS Code terminal, I can: a) use the up and down arrow keys to navigate through my command history when typing a command: zsh command navigation b) use all arrow keys ...
Staś Werno's user avatar
0 votes
2 answers
257 views

VS Code - Need a way to add shortcut key <esc> to close the panel if the panel has focus

Currently in the process of coding MQL4/5 in VSCode because of the awesome extensions. Finding that a few of the (my) most used keyboard shortcuts are actually configurable. Looking for a short answer ...
Dennis Jorgenson's user avatar
1 vote
1 answer
196 views

How to fix code blocks in list syntax highlighting of Markdown files in Codium?

I am using Codium and VSCode to edit Markdown files. The syntax highlighting breaks inside of code-blocks under an item: Some list with codeblocks: - dikfree ```sh # Interesting comment df -h ...
Human's user avatar
  • 553
2 votes
0 answers
250 views

VSCode unable to sign commits

If I try to commit something, I'm getting this error. > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - -S error: gpg failed to sign the data: gpg: skipped <redacted&...
MathIsNice1729's user avatar
0 votes
0 answers
40 views

Unable to accept android Licenses for debugging and compiling .NET MAUI

I have tried everything I could. Even the non-recomendable option of starting code as superuser and changing through chmod all the permissions at /opt/android-sdk folder. I also followed the ...
DaniWein's user avatar
4 votes
2 answers
252 views

Are the Origin and Label changes for packages.microsoft.com/repos/vscode/dists/stable/InRelease suspicious?

While updating the apt repository indexes on Debian 12 bookworm, I was informed that the microsoft package repository for vscode had changed it's Origin and Label as shown below. This seems an ...
RidiculousRichard's user avatar
0 votes
1 answer
91 views

How to exclude VSCode from WARP DNS changer?

I'm using WARP for a protected connection and as a DNS changer. However, it affects the VSCode and my Copilot connection. Hence, I want to somehow enforce Windows to pass the internet traffic from the ...
Shayan's user avatar
  • 321
0 votes
1 answer
185 views

Cannot run Visual Studio Code on Ubuntu run via Termux [closed]

I have installed Ubuntu 22.04 via Termux proot. I am able to login via VNC Server and use the desktop on my Android Phone. I downloaded arm64 deb and tar.gz files. However, when I run VS code ...
abel's user avatar
  • 737
2 votes
0 answers
210 views

Is it possible to use Libtorch with VS Code?

I have followed the instructions provided by Pytorch to installing C++ distributions of PyTorch: https://pytorch.org/cppdocs/installing.html However, this command produces an error: cmake --build . --...
Mattpats's user avatar
  • 121
1 vote
0 answers
43 views

Why codium (vscode fork) doesn't autoclose quotes?

this is my first time using codium (vscode fork) after using atom for a while, I have installed several bash extension to enhance my shell scripting adventure, but I found that I'm unable to auto ...
Liso's user avatar
  • 69
1 vote
0 answers
31 views

Is there an extension or configuration to get VScode to use a single quartet of hotkeys to navigate between split-terminals and split-editor panes?

I come from a vi background, and I'm used to using something like CtrlW+CtrlH/J/K/L to navigate around 'panes' in the editor interface, including both integrated terminals and text-editors. I've got ...
ELLIOTTCABLE's user avatar
  • 2,475
1 vote
2 answers
1k views

Formatting of braces for C++ in Visual Studio Code

I've C/C++ extension of Microsoft as my default formatter. When I save/run my code the opening curly braces automatically move to newline instead of staying in sameline. How can I prevent this? (It ...
Shub's user avatar
  • 160
1 vote
0 answers
179 views

How to prevent VS Code from treating the tab-key input as textual-input/tab-stop-insertion, but instead solely as auto-completion-/navigation-trigger?

Preamble: I would like to use VS Code whenever i can, if i could (mainly for the reason that it is cross-platform and the only completely customizable/hackable GUI editor on all major platforms). One ...
claudiusraphael's user avatar
1 vote
1 answer
1k views

Display Problems with Visual Studio Code (1.83.1) on Ubuntu (20.04.6 LTS)

I've been using Microsoft VS Code with Ubuntu (20.04.6 LTS) for a while now. When I launch the app now, the window display is corrupted (see screenshots) such that I cannot use the software. So far, I'...
Joseph Faulkner's user avatar
1 vote
0 answers
27 views

Setting or extension to shrink lines of code that are empty or contain only brackets in VS Code or IntelliJ IDEs?

There's a nice extension in Visual Studio I've been using for years which shrinks the height of lines of code that don't contain alphanumeric characters. The left screenshot is with the extension ...
Jacob Stamm's user avatar
0 votes
0 answers
193 views

Having conda terminal as a terminal in VScode (in Windows 10)

I do not have this problem in Linux. However when I (very rarely) program in Windows 10, and I use VScode (as usual) I want to use the attached terminal. When I do, I have the following options: ...
KansaiRobot's user avatar
1 vote
1 answer
107 views

How to flip the mouse cursor in VS Code when hovering over the line number/gutter?

I'd like to have the mouse cursor horizontally flipped/mirrored when hovering over the line number in VS Code on Windows. Editors like Notepad++ and full Visual Studio do this, and it helps usability ...
Jacob Stamm's user avatar
0 votes
2 answers
3k views

Warning popping up: preload-host-spawn-strategy Warning: waitpid override ignores groups

I am currently on Fedora Linux 38. I have installed VSCode and I have seen warning popping up again and again [337 preload-host-spawn-strategy] Warning: waitpid override ignores groups Even if I open ...
Chintu sharma's user avatar
0 votes
2 answers
992 views

Visual Studio Code - write from right to left

Is it possible to write text on VSCode from right to left? I mean that the start point of writing will be the top right of the editor window and twoards left side. How?
dushkin's user avatar
  • 291
0 votes
0 answers
54 views

Visual Studio Code: how to jump to the first build error in build terminal?

My question is a duplicate (almost) of Visual Studio Code: Use keyboard to jump to first error from terminal output (which does not have any answer). This is such a persistent problem: I build, I get ...
jhnlmn's user avatar
  • 131
1 vote
0 answers
55 views

How to increase the value of a setting in 'Settings.json' with a hotkey?

VSCode despite its many hotkey commands is still lacking some basic ones. For example, its not possible to increase the terminals font size with a hotkey, the equivalent of editor.action.fontZoomIn/...
Ralf_Reddings's user avatar
0 votes
1 answer
401 views

Use `arch -x86_64` on terminal in vscode on macos

I'm new to mac and looking for pain relief. I have a dependency that doesn't run on apple silicon. Meaning: if I cd into the project folder and run poetry install, I get an error message: I'm able to ...
ElRudi's user avatar
  • 424
0 votes
0 answers
43 views

Toggle between active editor and previously active editor?

I recently lost some data, I am manually rebuilding some of it, this includes VSCode settings. wasn't there a command for toggling between the editor that is active now and the previously active ...
Ralf_Reddings's user avatar
1 vote
0 answers
676 views

How to to always force 'Run Without Debugging' to Output to the Debug Console?

I have searched quite a bit for this and have not been able to find an answer. I have been coming across quite allot of inconsistent behaviour with the Run Without Debugging command. Whether, the Run ...
Ralf_Reddings's user avatar
1 vote
1 answer
128 views

How to add Visual Studio Code hotkey to start debugging with a specific launch config even if it's currently not the active one?

If I for example had 3 "Launch" configuration defined for PowerShell: { "version": "0.2.0", "configurations": [ { "name": &...
Ralf_Reddings's user avatar
0 votes
0 answers
55 views

Is it possible to start "remote" VSCode to a wsl distro using a specific network namespace?

Setting up a namespace as described in the accepted answer here: WSL2 two separate Centos distributions have same eth0 inet address Would it be possible to start a VSCode session in a wsl distribution ...
mikedoy's user avatar
  • 31

1
2 3 4 5
17