Skip to main content

Questions tagged [visual-studio-code]

For questions about using the macOS version of Visual Studio Code, an open source text editor available for macOS, Linux and Windows.

Filter by
Sorted by
Tagged with
1 vote
0 answers
9 views

When opening folder via context menu VS code is being opened within that folder. But on other macbook Terminal is opened

When opening folder via context menu VS code is being opened within that folder. But on other macbook Terminal is opened.
Alisherbek Rakhimov's user avatar
0 votes
0 answers
36 views

Visual Studio Code crashes when started from command line - profile specific

When I try to start Visual Studio Code (v 1.89.0) from the command line, via code or open /Applications/Visual\ Studio\ Code.app the app icon bounces and then the app crashes. Error below. I've tried ...
Volsk's user avatar
  • 3,060
0 votes
0 answers
45 views

How to prevent auto logout from Visual Studio code?

Connect to the host using SSH at the specified IP address @Visual Studio Code. Issue: There is a recurring problem where, after approximately 30-40 minutes, the system automatically logs out from the ...
subbu's user avatar
  • 1
2 votes
0 answers
44 views

How can I ensure that Excel can import my pip-installed python libraries?

I have a script that imports Selenium WebDriver and it runs fine in VisualStudio debugger but fails when I call it from an Excel module because it can't find the Selenium module. Here's the code stub:...
Phil's user avatar
  • 31
2 votes
2 answers
76 views

Terminal | Shortcut for Automatically Saving Files Created Using "code"

I have a question regarding a shortcut use of "code". My Goal is to simultaneously: Open a new file in VS Code, and also: Automatically save that new file to my current working directory ...
Drew P's user avatar
  • 21
1 vote
0 answers
154 views

Run terminal in VS Code in rosetta/intel mode

A dependency of my code (pyqt5) does not run on Apple Silicon: Installing pyqt-qt5 (5.15.2): Failed RuntimeError Unable to find installation candidates for pyqt-qt5 (5.15.2) and I'm having ...
ElRudi's user avatar
  • 183
0 votes
0 answers
14 views

MacOS vscode open dir via the right mouse button [duplicate]

There is a way to set the possibility of being able to open a dir on vs code via the right mouse button where the menu appears, as I do with the terminal in this way. code .
Paul's user avatar
  • 111
0 votes
0 answers
136 views

Bizarre Sudden Slow-Down of Specific MacOS Processes

I purchased a 2020 M1 13" MacBook Pro in March 2021 and it's been like driving a racing car. I use it for everything, and I do a lot as I'm a post-graduate researcher in Electrical Engineering. ...
Sirk's user avatar
  • 1
1 vote
0 answers
108 views

C program opens terminal in VSCode of MacBook Air M1

I am running this code in VSCode on my MacBook Air M1 #include<stdio.h> int main(){ double pi=(double)355/113,r; printf("Enter the radius of the circle\n"); scanf("%...
Kartikey Doshi's user avatar
11 votes
1 answer
2k views

How does Apple manage apps in Downloads and Applications differently?

I'm using MacBook M1 Air, I tried updating the VS Code editor but it didn't do it. VS Code says I have to drag VS Code from Downloads into Applications on macOS. After completing this drag-and-drop ...
JackieChain's user avatar
1 vote
1 answer
3k views

How to properly configure CMake Tools in VsCode on MacOS?

When I configure CMake Tools extension on Windows or Linux, the end result looks something like this: This allows the user to quickly switch build type and executables (targets) to build, debug or ...
a_girl's user avatar
  • 163
0 votes
0 answers
404 views

MacAir running macOS Monterey v12.5.1 crashes with error code 5

I am encountering a recurring issue on my MacBook Air (M2 2022) running macOS Monterey version 12.5.1. Whenever I launch a specific window/application, it terminates unexpectedly, resulting in a crash....
Brayan Cuenca's user avatar
0 votes
0 answers
310 views

Disable VSCode file icons

After installing VSCode, it's decided to make every program file use an icon with the VSCode logo on it. Is there anyway to disable it? It's annoying since it removes the quick preview feature that I ...
Xavier Denis's user avatar
2 votes
0 answers
117 views

Stop Safari from switching to itself while debug React app on Visual Code

I am using Visual Code to developer a React/ NextJS application. I run the application using 'npm run dev'. Each time I save a source code file Safari gets updates AND the takes over (focuses on ...
checklist's user avatar
  • 123
1 vote
0 answers
594 views

Can't write "#" symbol in VS Code on macOS

In Visual Studio Code, all characters and symbols work without problems except #. I tried all keyboard keys, SHIFT+3 OPTION+3 etc.; none work, the problem is only with VS Code. No other programs have ...
Akar Jaza's user avatar
1 vote
2 answers
694 views

Should I downgrade my MacBook Air 2017?

I recently found my MacBook Air 2017 becomes slower after upgrading it to the latest macOS. And, now it's too slow when I write code in vsCode and if I switch screens then it's laggy sometimes. I have ...
Harsh Mishra's user avatar
1 vote
1 answer
134 views

Overlapping of shortcuts in macOS for VS Code and Evernote

CommandShiftF is a shortcut that I use widely in VS Code and Evernote for search. Behaviour in VS Code: Behaviour in Evernote: The Problem. If both apps are opened, when I press CommandShiftF in VS ...
Sivashanmugam Kannan's user avatar
0 votes
1 answer
127 views

Is this a virus on my Macbook Pro?

I tried to minimise my Visual Studio window and this happened as I moused over the dock. The screen remained like this for more than a minute. Could this be a virus on my computer?
Jay's user avatar
  • 1
1 vote
0 answers
5k views

VS Code uses high CPU even if it is closed

VS Code takes 100% CPU usage even it is not open. I ran the ps aux | grep PID command to check the details but can't understand anything. Here's the output: tawhid 27099 100.0 0.1 447352160 ...
Muhammad Tawhidul Islam's user avatar
1 vote
1 answer
2k views

VScode unable to write into user settings

I edited the VScode settings in settings.json file /* "terminal.integrated.fontSize": 13 "terminal.integrated.fontFamily": "Monaco" */ I had to comment them out because ...
Johnny Smith's user avatar
33 votes
8 answers
142k views

M1 mac: mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e') - python

When I try to run "scrapy startproject" in vscode, below error comes up. Traceback (most recent call last): File "/Users/admin/Desktop/development/project/scrapyTutorial/venv/bin/...
Ryan's user avatar
  • 433
2 votes
0 answers
407 views

VS Code doesn't find fish if called via Automator

I've using /usr/local/bin/fish as my default shell, which works fine both in Terminal and in the Terminal within VS Code. I was recently trying to add an Automator action to open VS Code from a given ...
Raydot's user avatar
  • 150
1 vote
1 answer
2k views

How to open a folder in Visual Studio Code using AppleScript?

I'm looking to create an AppleScript which helps me open VSCode in a specific folder (in order to be able to use it in the toolbar in Finder). I've written the following code: tell application "...
manu_romero_411's user avatar
2 votes
1 answer
3k views

How to run VSCode Integrated Terminal in x86_64 on Apple M1 (arm64)?

VSCode now has an arm64 version, problem is there are still a lot of command-line developer tools that are using x86_64 architecture. At the moment there doesn't appear to be a plugin or preferences ...
sonjz's user avatar
  • 859
1 vote
1 answer
359 views

How can I get more items in pop-up list of recent projects of Dock icon in VSCode?

I currently have at most 10 recent items if I click on the VS Code icon in my Mac's Dock: Is there a way to get more items?
Oleg Butuzov's user avatar
0 votes
1 answer
7k views

Can I get some help making a symbolic link to run VSCode from the command line?

I downloaded VSCode and tried to make link for code to use code command to open VSCode. I also appended this vscode path to PATH variable. I have downloaded VSCode in folder called Work. This Work ...
Malay Pandey's user avatar
7 votes
2 answers
14k views

Can't kill frozen Visual Studio code on mac

Somehow My visual studio code froze when It was idle for some time and I was using my Injellij application. When I found, I tried quitting the application by doing right +click on visual studio ...
Arun Chouhan's user avatar
0 votes
0 answers
33 views

“Move focus to the menu bar” shortcut does not work in Visual Studio Code in Big Sur?

I have customised the "Move focus focus to the menu bar" in Big Sur: This combination does work in Google Chrome and Excel. But hitting that key combination does nothing inside Visual ...
WestCoastProjects's user avatar
1 vote
1 answer
980 views

What has caused the CTRL + x + e shortcut to stop working in the shell?

The CTRL+x+e keyboard shortcut allows you to open your favorite editor, as defined in the $EDITOR shell environment variable. This has stopped working for me recently, but I am not sure what changed. ...
WinkyCharlie's user avatar
0 votes
0 answers
407 views

Cannot debug C code on vscode on macOS big Sur

Hi I have been trying to debug C code on macOS using vscode. I followed all the steps given here https://code.visualstudio.com/docs/cpp/config-clang-mac. but still when I start debugging a terminal ...
jumpy123's user avatar
1 vote
2 answers
1k views

Option Shift word selection doesn't work in Visual Studio Code on Mac OS Big Sur

I can't exectly say when this started, but from some version of Visual Studio Code Option + Shift + Right Arrow/Left Arrow selection stopped working. Currently I use macOS Big Sur, but I am almost ...
Denys Ivanenko's user avatar
5 votes
2 answers
2k views

Does VSCode have Full Disk Access via Terminal?

I can use the terminal in VSCode and the terminal has Full Disk Access, so does VSCode have Full Disk Access? Can VSCode and extensions run terminal commands?
TNKYM's user avatar
  • 115
1 vote
0 answers
300 views

Which files can VSCode read?

If I open a folder using VSCode, it can read the files in that folder. However, can it read the files outside that folder? I can use the terminal inside VSCode and if I run cd .. command, I can ...
TNKYM's user avatar
  • 115
1 vote
1 answer
1k views

Why does HTML mailto link open Brave browser?

I'm a web developer working on macOS "Big Sur". I've noticed recently that if I create a web page in Visual Studio Code that contains an HTML anchor tag with a "mailto" href ...
Jim's user avatar
  • 245
1 vote
1 answer
535 views

MacOS High Sierra VSCode "Writing login information to the keychain failed with error 'UNIX[No such file or directory]'."

MacOS High Sierra 10.13.6 with new install of VSCode 1.50.0 Attempt to "Sign-in to Sync Settings" web/browser-based SSO redirects to Microsoft and/or Github browser login login fails - ...
Flak DiNenno's user avatar
1 vote
1 answer
384 views

When using VSCode on macOS, randomly a `sysdiagnose.tar.gz` will be generated

I'm using Microsoft's Visual Studio Code (VSCode) to develop TypeScript. All versions are their most up-to-date (and this was happening with 10.15.6, so it's not a 10.15.7 issue). Randomly a Finder ...
John Noble's user avatar
4 votes
4 answers
4k views

MacOS: How to turn off Option key printing special characters in VS Code, IntelliJ etc

Most code editors like IntelliJ, VSCode etc have many shortcuts using the 'option' key in mac. For me, using the option key would cause a special character to be printed instead of performing the ...
Somjit's user avatar
  • 189
126 votes
3 answers
42k views

How do I sync the Visual Studio Code (vscode) theme to use my OS light/dark color scheme?

MacOS now supports both "Light" and "Dark" mode (found in "System Preferences", "General", "Appearance"). How can I make VS Code automatically change ...
JBallin's user avatar
  • 11.7k
0 votes
1 answer
63 views

How to press `^|` in Visual Studio on macOS?

I want to execute the "Format Document" menu item in Visual Studio on macOS. I've attempted pressing control + | (pipe), but the item is not executed. Can ^| be interpreted differently than the above ...
Shuzheng's user avatar
  • 1,511
3 votes
2 answers
21k views

How do I solve the problem of “invalid active developer path” when attempting to use Git on VSCode [duplicate]

How do I fix this issue while on VS Code? xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun I'...
Manel Ariapala's user avatar
1 vote
1 answer
249 views

Why does the same colour appear different in different apps?

I've configured VSCode and iTerm2 to use the Solarized Dark colour scheme. As far as I can tell, they are both using the same RGB colour specification for the background colour, but to my eye they ...
Will Vousden's user avatar
1 vote
1 answer
2k views

How to run tests showing code coverage in Visual Studio for Mac Community 8.3.4

I'm new in C# after a brief use of it in 2010. I'm asking an Internet search engine - one claiming not to track me - how to "visual studio for mac show tests coverage". That would link me to Use ...
146438's user avatar
  • 43
-1 votes
1 answer
459 views

Touch Bar and Visual Studio code

I am debugging a Java class with Visual Studio Code but, the buttons on my touch bar do not work as expected except for Reset (cycle arrow) and Stop command (square). Any clue? I have recently ...
Andrea Girardi's user avatar
74 votes
11 answers
93k views

VS Code - Code Helper process using more than 100% CPU on macOS

I noticed that my MacBook gets hot and noisy (fans) when using VS Code (v1.31). The Activity Monitor shows the process Code Helper using more than 100% of CPU. It started happening with one repository ...
Manasés Jesús's user avatar
48 votes
1 answer
17k views

Unable to add Visual Studio Code app's icon to macOS Dock

I had Visual Studio Code app's icon in my Mac's Dock before, but I can't put it there again. I tried dragging and dropping the app bundle from the /Applications folder, but the icon doesn't land in ...
Brainmaniac's user avatar
  • 1,587
8 votes
2 answers
5k views

How can I make ctrl+right/left arrow jump words in Visual Studio Code

My fingers are programmed to use ctrl+right arrow to jump a word forward, ctrl+left arrow to jump a word back, in Terminal. I have disabled Mission Control. I can not figure out how to get this ...
Eric Pardee's user avatar
1 vote
0 answers
358 views

Visual Studio Code becomes unresponsive after a short time

I'm learning python using Visual Studio Code, A few minutes after opening a file VScode becomes unresponsive and sends a warning to the screen. When I open Activity Monitor, while VScode is sluggish, ...
Natsfan's user avatar
  • 14.2k
7 votes
2 answers
11k views

Visual studio Code maxs out my CPUs even when its just open

I have been learning python using VScode. I've noticed recently that as soon as I start VScode my CPUs get maxed out and my whole computer is sluggish. When I run the activity monitor I see as many as ...
Natsfan's user avatar
  • 14.2k
1 vote
1 answer
2k views

How to make Visual Studio Code run python 2.7.15

I'm using an iMac with High Sierra. I used Anaconda to install both python 2.7.15 and python 3.6.5. I created virtual environments for both of these. I'm trying to learn python and I'm using Visual ...
Natsfan's user avatar
  • 14.2k