Skip to main content

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
1 vote
0 answers
43 views

SSHing into remote machine from terminal doesn't ask for password, but through VS Code integrated terminal, it does, Why?

I'm working on a project where I have to run a python script which will open a tmux session with multiple windows, in each one ssh into a different remote machine, and run another python script. I'm ...
a dude's user avatar
  • 11
0 votes
1 answer
27 views

Where to get Debian packages for Visual Studio Code from: packages.microsoft.com/repos/code or packages.microsoft.com/repos/vscode?

To install Visial Studio Code on Debian, different sources advise using different repositories: https://code.visualstudio.com/docs/setup/linux advises to use https://packages.microsoft.com/repos/code,...
AlMa1r's user avatar
  • 1
4 votes
1 answer
450 views

ps: invalid option -- 'p'

I'm using Yocto Project (honister) to build my OS image. When I'm trying to use vscode ssh extension, I'm getting an error: > ps: invalid option -- 'p' > BusyBox v1.34.1 () multi-call binary....
YoctoDragon's user avatar
1 vote
1 answer
115 views

How to show all current ssh connected users on Linux?

Using GCP VM Instance, I'm connected via ssh, not serial port. When I type w or who or finger I get the following output: $ w 08:46:18 up 41 min, 0 users, load average: 0.10, 0.07, 0.01 USER TTY ...
Dédé's user avatar
  • 11
0 votes
0 answers
42 views

"[" displayed as "Ä" and "]" displayed as "Å" in remote terminal from vscode

I did the following things in VSCODE: remote ssh into a remote virtual machine; opened a terminal; typed some characters into the terminal. I then noticed that [ is displayed as Ä and ] is displayed ...
Ziqi Fan's user avatar
  • 237
0 votes
1 answer
129 views

vscode and edge has different mouse cursor size with system

I'm on manjaro with xfce. my mouse cursor size differs when it is on vscode and not. it also happens on edge. The vscode is installed use aur of visual-studio-code-bin package.
Shore's user avatar
  • 103
2 votes
3 answers
1k views

Running VSCode headless, without installing desktop environment

Can you install VS-Code-CLI on a headless machine, without installing a desktop environment too? (I sometimes wish to access my code on an Android tablet, using the PWA version of Code that doesn't ...
LukeW's user avatar
  • 23
1 vote
1 answer
102 views

Log a list of files and open them with VSCode CLI

I'm trying to create a macro on my shell. The operation I'm trying to automate is this one: Find all the files containing TEXT_TO_SEARCH, and open them with VSCODE I can do this with a one-liner $ ...
ychiucco's user avatar
  • 113
0 votes
0 answers
121 views

Cannot copy text from tmux integrated terminal in update 1.82.2

I solved this issue of copying text from tmux window inside Visual Studio Code's integrated terminal by holding Option key but with the latest upgrade to 1.82.2 I am not able to copy the text from ...
romanzdk's user avatar
  • 101
0 votes
1 answer
3k 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
2 votes
0 answers
991 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
  • 121
0 votes
1 answer
309 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
2k 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
431 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
57 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
146 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
87 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
5 votes
0 answers
2k 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
108 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
167 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
161 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
812 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
6 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
  • 123
0 votes
1 answer
133 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
5 votes
3 answers
23k 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
  • 237
2 votes
1 answer
207 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
  • 2,055
0 votes
2 answers
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
  • 188
3 votes
0 answers
375 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
  • 237
0 votes
2 answers
628 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
45 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
4 votes
2 answers
4k 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
  • 491
3 votes
2 answers
3k 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
  • 485
2 votes
1 answer
2k 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
687 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
2k 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
  • 379
0 votes
1 answer
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
2k 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
997 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
2 votes
1 answer
4k views

Can't open VS Code on Kali Linux as super user or root

I installed VS Code on Kali Linux and when I tried opening it with the code command, this message would appear: You are trying to start Visual Studio Code as a super user which isn't recommended. If ...
Aarzoo Mohammad's user avatar
0 votes
1 answer
1k 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
867 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
  • 379
0 votes
1 answer
1k 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
179 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
342 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
3k 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
257 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
44k 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
  • 517