Questions tagged [visual-studio-code]

Visual Studio Code is an open source text editor available for Linux, OS X, and Windows. It includes support for debugging, embedded Git Control and rich development experiences such as intelligent code completion. It is open source driven by Microsoft, built on Electron like GitHub's Atom.

Filter by
Sorted by
Tagged with
3 votes
1 answer
348 views

ls: bash: printf: `Y': invalid format character in VS Code, not in Terminal

I upgraded to Linux Mint 21 (based on Ubuntu 22), having number of small issues, one of which is in VS Code, not in Terminal (gnome-terminal), running ls alias: bash: printf: `Y': invalid format ...
user avatar
0 votes
0 answers
12 views

How to change color of menu bar in Visual Studio Code under XFCE?

I'm running Manjaro XFCE. I have set the system theme to dark, same as in VS Code (installed via flatpak). However, one element of the VS Code window stands out as odd and that is the menu bar: What ...
user avatar
  • 101
0 votes
0 answers
4 views

Get path of current vscode document

I want to make a script cd to a certain path to show relevant results. Specifically I want the path to be that of the document that is currently open and focused on vscode (visual studio code) (the ...
user avatar
  • 189
0 votes
0 answers
4 views

How to unbind a vim command in visual studio code

So when I press ctrl + c it toggles from insert mode to vim. What can I write in the settings file to turn this toggle off?
user avatar
0 votes
0 answers
22 views

In the vs code the number six turn into tab and the number five turn into backspace

Only when I'm in vs code, number 6 becomes tab and number 5 becomes backspace. Video showing I'm using termux emulated Ubuntu on Android 11. root@localhost:~# cat /etc/os-release NAME="Ubuntu&...
user avatar
0 votes
1 answer
227 views

CodeLLDB for VSCode not working with remote gdbserver

I'm currently trying to set up remote debugging on a Raspberry Pi using the CodeLLDB plugin for Visual Studio Code and gdbserver. Unfortunately this doesn't seem to work, since every breakpoint I set ...
user avatar
0 votes
0 answers
88 views

How to open vscode in the current VNC display?

I have three VNC displays running - hostname:1 hostname:2 and hostname:3. I tried to open vscode in hostname:3, but it opens in hostname:1. Is there a way to open vscode in the current display without ...
user avatar
  • 113
0 votes
0 answers
162 views

Can't open visual studio code on ubuntu 20.04 server

I followed this https://linuxize.com/post/how-to-install-visual-studio-code-on-ubuntu-20-04/ to install visual studio on my Ubuntu machine. I Tried the snap method first and it gave this error: error: ...
user avatar
  • 1
0 votes
0 answers
26 views

Something (probably VS Code) is creating numerous weird named files

Every time I open vscode, numerous weird named files are created in my project folder. Result of ls -l (personal files which were supposed to exists are replaced with pf) total 164 -rw-rw-rw- 1 jarif ...
user avatar
0 votes
0 answers
176 views

Set Environment Variables in launch.json for CUDA Debugging When Using Nsight Visual Studio Code Edition

I am developing a CUDA application in vs code and would like to debug it with cuda-gdb, which is integrated in nsight visual studio code edition as an IDE. One requirement in using nsight visual ...
user avatar
  • 147
5 votes
9 answers
1k views

How to put text inside text automatically?

I need to put one text inside another text. 1) I have a file with list of input values: A1 B2 C3 D4 E5 I have a wrapper pattern which should contain the text: $wgSpecialPageLockdown['...
user avatar
  • 115
0 votes
1 answer
26 views

Optimizing Code OSS aka Visual Studio Code

I am using Manjaro on a Mibook and installed Code OSS (Visual Studio Code) on it and while it works, I see that the CPU jumps to 3.1GHz turbospeeds even while just writing stuff in the IDE. If I ...
user avatar
0 votes
0 answers
30 views

Problem with permissions using git on linux

I'm new to linux I have this installed on linux mint 20: XAMPP installed in opt folder Visual Studio Code Git AWS CLI The issue is that every time I want to do pull origin I have to use sudo, then ...
user avatar
0 votes
2 answers
3k views

How to Set up Environment Variables in "launch.json" Configuration When Using GDB Integration in VS Code

I have a setup in launch.json for vscode as follows: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information,...
user avatar
  • 147
2 votes
1 answer
45 views

How can I make VS Code sign my commits?

I am having trouble getting vscode to commit changes I make to files. I am currently running Fedora 35 Silverblue, so I'm using the flatpak version of VS Code. I have set up my .gitconfig as it should ...
user avatar
  • 1,060
0 votes
0 answers
69 views

Strange error using git after connecting VS Code to Docker container

After connecting to Docker container from VS Code, I got the following error as I used git to fetch changes from a server: internal/modules/cjs/loader.js:883 throw err; ^ Error: Cannot find ...
user avatar
  • 147
0 votes
0 answers
68 views

How to debug C++/CUDA code built into a shared Library and loaded by a python script in VS Code

I am debugging a CUDA function registered as tensorflow custom op and executed in a tensorflow session. The CUDA code is a simple GELU kernel with its launching wrapper: #ifndef GELU_KERNEL_ #define ...
user avatar
  • 147
0 votes
1 answer
457 views

Set firefox developer edition as the default browser in VS Code on Linux

I have installed firefox developer edition on my MX-Linux. When I tried to configure the live server of VS Code to run it as default, I failed. I followed this link to set up, but ultimately it is not ...
user avatar
0 votes
0 answers
143 views

How can I change the JRE/JDE version used in VS Code?

I'm struggling to get vscode to use the latest Java environment. The output of update-alternatives --list is: jre_17 auto /usr/lib/jvm/java-17-openjdk-17.0.2.0.8-2.rolling.fc35....
user avatar
  • 1,060
0 votes
0 answers
64 views

Undefined reference to 'fminf' while using Code Runner on Visual Studio Code

I am a fresh Linux user (Linux Mint 20.3), and I am trying to set up my C code environment in Visual Studio Code. On my Windows PC, I am able to run my code with no problems. Yet here, when I run my ...
user avatar
1 vote
0 answers
86 views

Editting Makefile in VS Code

I have many questions about writing makefiles in visual studio (vs) code. The first question is, how to make vs code recognize certain files as makefiles. For instance, when a file's suffix is "....
user avatar
  • 147
0 votes
2 answers
102 views

C language programs not workning on ubuntu

I wrote a simple code to find even and odd numbers in c. #include <stdio.h> int main() { int num; printf("Enter an integer: "); scanf(" %d", &num); (num % 2 =...
user avatar
0 votes
1 answer
23 views

Visual Studio code gets autoremoved after upgrading system

I manually installed visual studio code in ubuntu. As soon as i run the command sudo apt update the system gets properly updated. After, I run the command sudo apt upgrade which autoremoves the ...
user avatar
2 votes
1 answer
1k views

When installing VSCode via Flatpak, where is its `code` executable located?

When installing Visual Studio Code via apt or homebrew, the VSCode code executable goes to a standard location that is within PATH, however it seems when installing VSCode via Flatpak, it goes ...
user avatar
  • 403
3 votes
2 answers
1k views

Using Visual Studio Code as EDITOR e.g. with sudoedit

I am using Kubuntu 20.04. When I run sudoedit /etc/fstab, VS Code opens to a blank document and the CLI immediately returns (see details below). If I run export SUDO_EDITOR=nano, the document opens in ...
user avatar
  • 367
2 votes
1 answer
579 views

SSH config for connecting to host via reverse SSH tunnel

I set up a reverse SSH tunnel to access a node, node1, behind a NAT. I have set up an EC2 instance, myEC2, to act as the intermediary. From my laptop, when I want to access node1, I have to SSH into ...
user avatar
0 votes
1 answer
95 views

Zathura synctex-editor-command cannot open some editors such as VS Code

The document reader Zathura supports synctex forward and backwards search when working with LaTeX documents. The backwards (from Zathura to the editor) search is set through the --synctex-editor-...
user avatar
  • 103
0 votes
2 answers
323 views

installing .Net dotnet on debian

I downloaded ./dotnet-install.sh and successfully installed: $ ./dotnet-install.sh -c Current dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, ...
user avatar
  • 207
0 votes
0 answers
75 views

Persisting VSCode settings sync login information when not using a desktop

I use Visual Studio code with XMonad on NixOS (so I do not use any of the desktop managers). When using its "setting sync" feature (login via GitHub), VSCode fails to persist the login token,...
user avatar
0 votes
1 answer
492 views

Can't run Visual Studio Code on Fedora: "Permission denied" error on /proc/version

I had successfully installed Visual Studio Code on Fedora 33, but when I run it says this error: grep: /proc/version: Permission denied Somewhere on the internet, I found that you have to execute ...
user avatar
-1 votes
1 answer
302 views

Can't Install Visual Studio Code with rpm

I am using Fedora 33 with XCFE Desktop. I can't use this command: rpm -i https://update.code.visualstudio.com/latest/linux-rpm-arm64/stable It only makes a new blank that does nothing and I exited ...
user avatar
1 vote
1 answer
663 views

writing login information to the keychain failed

I'm running Linux Debian v5.4.109-26094-g381754fbb430 on my Chromebook. Everything has been working until now. On Sunday, I logged into VSC on another device using my account, then when I return to my ...
user avatar
0 votes
2 answers
637 views

vscode doesn't open as root in debian

In the new update, vscode doesn't open as root in debian. Even after specifying an alternative directory using --user-data-dir Has anyone ever faced this issue in the new update of vscode or is there ...
user avatar
  • 103
-1 votes
1 answer
2k views

can't open vscode on kali linux as super user or root

I installed vs code on kali linux and when I tried openning it with command code this massage would appear. You are trying to start Visual Studio Code as a super user which isn't recommended. If this ...
user avatar
0 votes
1 answer
238 views

__USE_POSIX and VS Code in WSL distro

I'm learning C and in general I code with VS Code in Ubuntu. For convenience, I'm trying to migrate my learning materials to Windows where a lot of my other works happen, so I installed WSL 2 and its ...
user avatar
0 votes
0 answers
362 views

vs-code terminal vs linux terminal shows different node --version

I upgraded node with "nvm" in kali-linux system: nvm install node This installs latest node version. nvm ls displays this default -> v14.15.1 v15.14.0 v16.2.0 v16.3....
user avatar
  • 207
0 votes
1 answer
360 views

Is it possible to install Visual Studio Code on Debian 10 buster 32-bit machine?

Is there any way to install Visual Studio Code on a Debian 10 32-bit machine?
user avatar
0 votes
0 answers
46 views

.profile file loaded on starting VSCode

in my .profile i have these two lines daemon plank daemon autokey what these basically do is start plank(dock application) and autokey(custom shortcut maker) on startup, it is working fine but the ...
user avatar
1 vote
0 answers
119 views

Bash: editing code format in visual studio code

Dealing with the followin function of CSV processing in bash: sort_data () { for csv in "${rescore}"/${str_name}/*.csv; do csv_name=$(basename "$csv" .csv) ...
user avatar
  • 197
0 votes
1 answer
1k views

VS Code can't find /usr/bin/bash [closed]

I have Manjaro Nibia 20.2.1 (5.10.12-1-MANJARO) on an Acer V5-171. I downloaded VS Code from the AUR repository with Pamac. As far as I can tell it works fine except when I want to access the terminal....
user avatar
  • 101
1 vote
1 answer
139 views

Fedora 33 | VS Code can't read / open JDK

I'm running Fedora 33 and I'm trying to use Java 11 with VS Code. I've installed VS Code via the terminal, and it's working fine. I've installed the VS Code Java extension pack, the only thing that ...
user avatar
  • 123
0 votes
2 answers
24k views

lsof command not found in VS Code terminal

I am trying to start up my application with npm start, however I get the following errors: rm: cannot remove 'dist/': Device or resource busy When I try to run an lsof I get the error message: bash: ...
user avatar
  • 437
2 votes
1 answer
160 views

Can I add a shebang to crontab with no ill consequences?

This might be considered abuse by some, but perhaps I (and others) can learn something here. I'm using vscode and recently when editing a crontab file I was annoyed that there was no syntax ...
user avatar
  • 121
0 votes
0 answers
57 views

VS Code isn't detecting python3 in Pop OS

I have installed VS Code in Pop OS 20.04. Previously I worked in Ubuntu 18 with VS Code without any problem. But in Pop OS, after installing the python plugin VS Code is telling me to select a Python ...
user avatar
4 votes
3 answers
827 views

when clicking open folder the system launches VSCode

Hi everybody I want to start to say thank you for your time! I have a problem and don't really know what to do to solve the problem. When i download something and I click on the arrow in Firefox to ...
user avatar
  • 171
1 vote
1 answer
202 views

Unable to open 'start.S': Unable to read file '/home/abuild/rpmbuild/BUILD/glibc-2.26/sysdeps/x86_64/start.S'

I'm setting up and debugging a c++ program on opensuse system in VS Code. The debugger is working properly without any issues. But I get an error pop up saying Unable to open 'start.S': Unable to ...
user avatar
2 votes
1 answer
1k views

XAUTHORITY environment value is not a clean path

I am having trouble opening VS Code from my VM running on Ubuntu 16.04. When I try to open it from the terminal, I get the error: WARNING: XAUTHORITY environment value is not a clean path: "/some/...
user avatar
0 votes
1 answer
637 views

Unable to open VS Code on Ubuntu VM instance on Google Cloud

I am facing a problem when trying to open VS Code on my Virtual machine in Google cloud using VNC viewer.  It's Real VNC, and I checked that vscode is not running in multiple VNC sessions. The VM is ...
user avatar
  • 1
0 votes
2 answers
411 views

XTerm Control Sequences for backward/forward word deletion?

I believe this article should help me find the control sequence for backward/forward word deletion. My understanding is that the control sequence would start with \u001b[ since that is "the control ...
user avatar
5 votes
1 answer
1k views

VS Code editor | How to include -x switch for ShellCheck?

Problem description and reproduction In terminal run: shellcheck -x my_script Where my_script sources another (partial) script. I get no error with the -x switch, but if I run it without -x: ...
user avatar