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
0 votes
1 answer
58 views

Why and how is DISPLAY variable set by MobaXterm but not VS code?

I am attempting to transition using the VS Code with the remote plugin for development on Linux VMs. However I am struggling with something related to the DISPLAY variable. Somehow during SSH to ...
shawn1874's user avatar
  • 101
0 votes
0 answers
29 views

How can I show the resource usage of a Jupyter notebook in VSCode

Understand that there is a jupyter-resource-usage Jupyter extension which allows us to monitor the resource usage (e.g. CPU, memory) of a running Notebook (server and its children (kernels, terminals, ...
Shern's user avatar
  • 101
0 votes
0 answers
69 views

vscode with jupyter with archlinux

I am trying to install and use vscode with jupyter extension for coding with python on my archlinux OS. but it does not found any kernel interpreter I installed both jupyter and python extension in ...
eugenio b's user avatar
0 votes
0 answers
57 views

vscode on wsl2: Run and Debug error: Starting directory does not exist

I want to program an STM32 board. My compiled C++ code is called firmwar.elf. The development board has an stlink built in. So this is my prefered debugger. I am using a WSL2 system to run Ubuntu. I ...
Sebastian's user avatar
0 votes
0 answers
173 views

Permission Denied Error in Visual Studio Code on Chromebook

I am new to coding and trying to run my first line of code in Visual Studio Code. However, I keep getting the error message bash: permission denied and can't proceed. I am using a Chromebook and have ...
Alyssa's user avatar
  • 1
0 votes
0 answers
80 views

Error in LaTeX Workshop switching from Docker to Podman

Starting point I want to switch from Docker to Podman on my system. All the necessary packages from Docker were installed and I could use containers to turn my .tex files into a PDF easily and without ...
Peter Zwegat's user avatar
0 votes
0 answers
69 views

VS Code Won't Recognize R Installation

I installed R via the commands at this website. Running R in terminal works properly; running which R returns /usr/bin/R. VS code cannot find R despite the path for rterm and rpath being given ...
Samuel Nelson's user avatar
0 votes
0 answers
1k views

Can't find `C/C++: gcc build and debug active file`, when trying to compile C program in vscode classic on manajro

When I click the arrow button: I get these options: I'm looking to get the C/C++: gcc build and debug active file option. This is a freshly installed manjaro and vscode. Vscode was installed via ...
Manfred's user avatar
  • 25
0 votes
0 answers
70 views

Ubuntu popups not showing any text anymore

I'm having problems with my Ubuntu (running on a VM). This is what I get when I try to delete or move files in VSCode for example. The popup window doesn't show any text anymore. How can I solve this ...
Samir's user avatar
  • 133
0 votes
0 answers
131 views

How to split long lines to shorter one in VS Codium when one formats the document

In VS Codium, is it possible to modify the Format Document -command such that it splits for example LaTeX files that has too long lines to two or more lines? Or is there an extension to do that?
guest's user avatar
  • 1
0 votes
1 answer
44 views

gcc doesn't find output fine and therefore cannot compile my c program (vscode)

As the title suggests it is the output file it cannot find, not sure why this is an issue here is my c_cpp_properties.json: { "configurations": [ { "name": &...
Manfred's user avatar
  • 25
0 votes
0 answers
56 views

inotify used by vscode and web service for changes in same file

I use a web server and inotify to check for files changing and posting the new content. It works well if I change the files with an ordinary editor (e.g. pluma): the changed file is posted. If I use ...
user855443's user avatar
-1 votes
1 answer
70 views

In which format C program should export to run on linux?

In windows we publish application in .exe format, so I have C program and I want to publish that application for linux. In which format I should publish it and how?
Abhishek Borse's user avatar
0 votes
0 answers
133 views

updating node.js version with nvm is set only for the session

I am using Kali Linux. I have Node.js v19.1.0. this version is not lts, it has some issues starting the applications. For example if I start a react.js project with this version, I get this error ...
Yilmaz's user avatar
  • 289
0 votes
0 answers
137 views

Debug Node.js from VSCode when node running with different user

EDIT2: Instead of command palette (Ctrl+Shift+P), If I go to Debug with (Ctrl+Shift+D) and click on the attach process it works. So it is very strange, maybe it is a bug. It was the first time I tried ...
gabor.zed's user avatar
  • 157
0 votes
0 answers
290 views

How is it possible that the remote VSCode terminal can start a server instance on my local machine?

I have code for a Flask server on a remote server that I connect to with VSCode's remote development functionality, which (as far as I understand it) runs a VSCode server on my server and connects to ...
Jess's user avatar
  • 101
4 votes
0 answers
1k views

How to set the default application to open folders?

I'm really stuck; I want to add Open with vs code to the folders context menu following the same approach as for files by means of the so-called MIME; editing the file ~/.config/mimeapps.list allows ...
EnthusiastiC's user avatar
0 votes
1 answer
76 views

Is it possible to always have the latest version of the deb package of vs code installed?

I want to install the latest version of vs code in Pop OS. The apt repository doesn't offer the latest version and I don't prefer flatpaks/snaps so installing the deb package of vs-code from the ...
Archit's user avatar
  • 1
0 votes
0 answers
122 views

How to switch from root to my unix user and solve (code .) command issue?

When I open ubuntu(wsl) on windows , usually, it opens as karim_123 user and not as root user. But this time it opened as a root user. How can I return back to my unix linux account(karim_123)? I used ...
Karim's user avatar
  • 1
1 vote
1 answer
134 views

% After output VSCode Integrated Terminal [duplicate]

So I'm running an Arch Linux installation with PowerLevel10k on OhMyZsh. I have the SynthWave84 theme on Visual Studio Code, and in the Integrated Terminal I get a weird % sign after the program's ...
Zany_Zachary1's user avatar
0 votes
0 answers
574 views

Error: Cask 'visual-studio-code' is unavailable: No Cask with this name exists

I try to download visual studio code via brew, and on https://formulae.brew.sh/cask/visual-studio-code its clearly written that the install command is brew install --cask visual-studio-code but when ...
Game0verZeus's user avatar
5 votes
1 answer
1k 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 ...
Vlastimil Burián's user avatar
0 votes
1 answer
2k 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 ...
ObiBabobi's user avatar
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['...
Lahor's user avatar
  • 113
0 votes
1 answer
85 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 ...
Fusseldieb's user avatar
3 votes
3 answers
16k 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,...
Ziqi Fan's user avatar
  • 217
2 votes
1 answer
118 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 ...
telometto's user avatar
  • 1,835
0 votes
1 answer
2k 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 ...
lone wolf's user avatar
  • 148
3 votes
0 answers
265 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 "....
Ziqi Fan's user avatar
  • 217
0 votes
2 answers
436 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 =...
ATHARVA SHETTY's user avatar
0 votes
1 answer
34 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 ...
ATHARVA SHETTY's user avatar
2 votes
1 answer
3k 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 ...
balupton's user avatar
  • 461
3 votes
2 answers
2k 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 ...
kevcoder's user avatar
  • 455
2 votes
1 answer
1k 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 ...
Xavier Merino's user avatar
0 votes
1 answer
452 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-...
jnanin's user avatar
  • 103
0 votes
2 answers
1k 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, ...
Yilmaz's user avatar
  • 289
0 votes
2 answers
1k 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 ...
M. Yusuf Suleman's user avatar
-1 votes
1 answer
1k 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 ...
M. Yusuf Suleman's user avatar
1 vote
1 answer
960 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 ...
NotDiamondZ's user avatar
0 votes
3 answers
2k 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 ...
Mani's user avatar
  • 103
0 votes
1 answer
3k 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 ...
Aarzoo Mohammad's user avatar
0 votes
1 answer
785 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 ...
dqtvictory's user avatar
1 vote
0 answers
756 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....
Yilmaz's user avatar
  • 289
0 votes
1 answer
805 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?
Abhijith Ea's user avatar
0 votes
0 answers
142 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 ...
Yugank Singh's user avatar
1 vote
0 answers
292 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) ...
Hot JAMS's user avatar
  • 197
0 votes
1 answer
2k 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....
Plergux's user avatar
  • 101
1 vote
1 answer
231 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 ...
Samuel's user avatar
  • 123
0 votes
2 answers
36k 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: ...
Daniel's user avatar
  • 487
2 votes
1 answer
226 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 ...
glaux's user avatar
  • 121