Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
0
votes
0
answers
30
views
Calling an Automator Workflow inside Visual Studio Code
I have a shortcut for an Automator Workflow that runs a python file on a selected text. That is, I highlight a text say "\(\alpha\)" then press Cmd+Shift+U and it automatically replaces the highlighted string "\(\alpha\)" to its unicode counterpart "α". This shortcut works perfectly when I use it on...
I have a shortcut for an Automator Workflow that runs a python file on a selected text. That is, I highlight a text say "\(\alpha\)" then press Cmd+Shift+U and it automatically replaces the highlighted string "\(\alpha\)" to its unicode counterpart "α".
This shortcut works perfectly when I use it on most applications: For example, if I write "\(\alpha\)" in the address bar in Safari and use this shortcut, it works perfectly.
However, I am unable to use it in Visual Studio Code. I have selected the "any application" toggle in Automator Workflow so I don't think that is the issue. In fact, rarely but sometimes, the shortcut works perfectly in Visual Studio Code on its own but I am not able to get it run consistently.
How can I get the Automator Workflow to receive input from Visual Studio Code?
newbie
(101 rep)
Jul 20, 2025, 04:41 PM
• Last activity: Jul 21, 2025, 11:52 AM
2
votes
2
answers
76
views
How to get new VS Code windows to have text input focus?
I am using Visual Studio Code on my macbook. When I launch a new instance of VS Code when I already have 1 instance up, via `code` using iTerm, the *already running* instance is the one that has text input focus. This means when the new VS Code instance pops up, I can't immediately start typing in i...
I am using Visual Studio Code on my macbook. When I launch a new instance of VS Code when I already have 1 instance up, via
code
using iTerm, the *already running* instance is the one that has text input focus. This means when the new VS Code instance pops up, I can't immediately start typing in it; I have to click it with my mouse first, *then* I can type.
What I want is for the new instance of VS Code to have text input focus. Is this a MacOS specific setting, something I need to configure in VS Code, or an adjustment in how I launch VS Code from the command line?
Some contextual information:
- MacOS Version: 15.3.1
- In "Desktop & Dock" settings for Mission Control, I have "Automatically rearrange Spaces based on most recent use" disabled, and "Displays have separate spaces" enabled.
- I have 2 external monitors connected and am also using the macbook display (for 3 total).
- The current instance of VS Code is on my middle display, and the new instance pops up on my right display.
- For testing I'm running code
directly in iTerm, but the real use case is when VS Code is launched from git, such as when I do git commit
, because I have Code set up as my git editor with setting core.editor
set to code --wait --new-window
.
void.pointer
(121 rep)
Feb 17, 2025, 06:43 PM
• Last activity: Jun 23, 2025, 10:30 PM
0
votes
0
answers
38
views
VS Code won't open more than one workspace from terminal
I recently got a new Macbook and installed VS Code on it using this command: ``` brew install --cask visual-studio-code ``` However, I'm seeing a weird issue when I try and launch VS Code from the Terminal. If I cd into a directory like `~/first-repo` and then type `code .`, it will open that repo i...
I recently got a new Macbook and installed VS Code on it using this command:
brew install --cask visual-studio-code
However, I'm seeing a weird issue when I try and launch VS Code from the Terminal. If I cd into a directory like ~/first-repo
and then type code .
, it will open that repo in a VS Code window correctly. But then if I subsequently cd into a separate directory like ~/second-repo
and type code .
, it will not. Instead, it will merely give focus to the existing VS Code window that shows first-repo, without actually opening second-repo at all. I did some Googling and tried setting the window.openFoldersInNewWindow
option to on
(in my settings.json file), but this hasn't made any difference at all.
What do I need to do to ensure that typing code .
will open a new window?
soapergem
(515 rep)
Mar 31, 2025, 09:27 PM
1
votes
1
answers
191
views
How to Disable/Delete the Pesky Dictionary Popups on Mac OS using Visual Studio Code?
Apple's **`Dictionary`** app and *Visual Studio Code* don't work well together. I get constant popups from **`Dictionary`**, an app that I **have not**, and **will not** ever use. I've followed the instructions in [Apple's Support Forum](https://discussions.apple.com/thread/251147716?sortBy=rank): -...
Apple's **
Dictionary
** app and *Visual Studio Code* don't work well together. I get constant popups from **Dictionary
**, an app that I **have not**, and **will not** ever use.
I've followed the instructions in [Apple's Support Forum](https://discussions.apple.com/thread/251147716?sortBy=rank) :
- Open System Preferences > Keyboard > Shortcuts
- Click Services in the left column
- In the Searching section, click the arrow to expand the options
- Remove the checkmark from "Look Up in Dictionary"
This stopped *most* of the popups, but on occasion, **Dictionary
** shows up to haunt me while using **VSC.**
I tried nuking it from terminal
:
sudo rm -rf /System/Applications/Dictionary.app
Which results in a screen full of error errors:
rm: Dictionary.app: Operation not permitted
I currently running a **Macbook Pro 2017**, with Ventura 13.6.7
.
I recall in the older versions of the OS, you had to boot into the recovery drive to remove system files, or enable system-wide full disk access, but I don't know the best solution using Ventura
.
What is the best approach to this problem? Nuke the app, or find another way?
How can I delete/disable the **Dictionary
** app, permanently?
Lord Elrond
(187 rep)
Dec 25, 2024, 04:51 PM
• Last activity: Dec 29, 2024, 05:34 PM
0
votes
0
answers
43
views
iPad's Magic Keyboard Not Responding After Setting Up CodeSpaces
I am trying to set up GitHub codespaces on my new iPad Pro so I can code on it at Uni. I started by going to the Visual Studio Code (online) website and connected to my Uni Github Account. To run any (python code) I needed to set up the codespaces so I created one. When I am on Safari everything see...
I am trying to set up GitHub codespaces on my new iPad Pro so I can code on it at Uni.
I started by going to the Visual Studio Code (online) website and connected to my Uni Github Account. To run any (python code) I needed to set up the codespaces so I created one.
When I am on Safari everything seems to be working. But when I created a shortcut to the codespaces - meaning "Add to Homepage" from Safari, and tried to access it something weird happened.
Every time I connect, the Touch works, but my keyboard does not respond; I can't write any code, log in to my account, or do anything.
I would like to know if someone has encountered the same problem or has a solution to this problem!
David
(101 rep)
Oct 24, 2024, 01:37 PM
• Last activity: Dec 28, 2024, 04:54 AM
96
votes
12
answers
139825
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 which is huge. Only one window opened, no files opened, and it always uses more than 100% CPU....
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 which is huge. Only one window opened, no files opened, and it always uses more than 100% CPU.
Checking in Microsoft/GitHub, there was an issue reported but they closed it saying *"This issue has been closed automatically because it needs more information and has not had recent activity."* , but it is still an ongoing issue. I tried some of the recommendations in the comments but didn't work.
Does anybody has more info and/or know how to avoid this? Is it possible to make some configurations for VS Code to not burn the MacBook?
Manasés Jesús
(1161 rep)
Feb 18, 2019, 02:18 PM
• Last activity: Sep 20, 2024, 02:37 AM
34
votes
8
answers
153803
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/scrapy", line 5, in from scrapy.cmdline import execute File "/Users/admin/Desktop/development/project/scrapyTutorial/...
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/scrapy", line 5, in
from scrapy.cmdline import execute
File "/Users/admin/Desktop/development/project/scrapyTutorial/venv/lib/python3.9/site-packages/scrapy/__init__.py", line 12, in
from scrapy.spiders import Spider
File "/Users/admin/Desktop/development/project/scrapyTutorial/venv/lib/python3.9/site-packages/scrapy/spiders/__init__.py", line 11, in
from scrapy.http import Request
File "/Users/admin/Desktop/development/project/scrapyTutorial/venv/lib/python3.9/site-packages/scrapy/http/__init__.py", line 11, in
from scrapy.http.request.form import FormRequest
File "/Users/admin/Desktop/development/project/scrapyTutorial/venv/lib/python3.9/site-packages/scrapy/http/request/form.py", line 10, in
import lxml.html
File "/Users/admin/Desktop/development/project/scrapyTutorial/venv/lib/python3.9/site-packages/lxml/html/__init__.py", line 53, in
from .. import etree
ImportError: dlopen(/Users/admin/Desktop/development/project/scrapyTutorial/venv/lib/python3.9/site-packages/lxml/etree.cpython-39-darwin.so, 0x0002): tried: '/Users/admin/Desktop/development/project/scrapyTutorial/venv/lib/python3.9/site-packages/lxml/etree.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/etree.cpython-39-darwin.so' (no such file), '/usr/lib/etree.cpython-39-darwin.so' (no such file)
And then I figure out that, the "mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')"is the main promblem. I tried with https://github.com/nmwsharp/robust-laplacians-py/issues/7 and I tried to uninstall the old packages and install it again using arch -arm64 pip install Scrapy.
But it didn't work...
So...how to fix this problem...?
Ryan
(443 rep)
Feb 11, 2022, 12:44 AM
• Last activity: Aug 22, 2024, 12:32 PM
0
votes
0
answers
195
views
VSCode open external terminal wezterm in home folder instead of in project folder
I use Visual Studio Code on my MacBook Pro and until now I had used iTerm 2 as my terminal emulator and I had it set as the external terminal in vscode: `"terminal.external.osxExec": "iTerm.app"`. So when I press `Cmd+Shit+C` vscode launches iTerm 2 in my project folder. I recently tried out WezTerm...
I use Visual Studio Code on my MacBook Pro and until now I had used iTerm 2 as my terminal emulator and I had it set as the external terminal in vscode:
"terminal.external.osxExec": "iTerm.app"
. So when I press Cmd+Shit+C
vscode launches iTerm 2 in my project folder. I recently tried out WezTerm and I liked it and decided to use it instead of iTerm 2. I changed the vscode setting to open wezterm as my external terminal: "terminal.external.osxExec": "WezTerm.app"
. So now when I press Cmd+Shift+C
vscode launches wezterm. However, it launches it in my home folder instead of my project folder which defeats the entire purpose of launching an external terminal from vscode. I tried searching online, but couldn't find anything useful. How can I configure vscode to use wezterm as my external terminal and launch it in the project's folder?
Shai Avr
(101 rep)
Aug 14, 2024, 12:04 PM
2
votes
0
answers
839
views
Visual Studio Code was blocked from use because it is not from an identified developer
I'm new to Mac and would like to know if this occurrence is normal, I installed the Visual Studio code (exactly version 1.91 from the official site) by downloading the file and then inserting it into the "applications" folder. I can open it without problems and make it work, the system does not bloc...
I'm new to Mac and would like to know if this occurrence is normal,
I installed the Visual Studio code (exactly version 1.91 from the official site) by downloading the file and then inserting it into the "applications" folder. I can open it without problems and make it work, the system does not block it in any way, but if I go to the security settings of the Mac I get the message telling me that the visual studio code is a program that comes from an unidentified developer and asks me for permission, does this happen to you too?
I proceed to do the steps
1. I downloaded it from here (https://code.visualstudio.com/)
1. The file I download is a zip version.
1. Once the download is finished it seems to extract the internal file by itself and leaves that file inside the download folder and puts the zip version in the trash
1. At this point I put that file in the application folder
1. I press it but it gives me the error that it was not downloaded from the Apple store
1. I go to settings to change the setting for starting programs even taken from the internet and it writes this to me
I have a Macbook pro M2 chip
Can someone explain why am I getting this message?


Ughetta Agente
(29 rep)
Jul 19, 2024, 07:03 AM
• Last activity: Jul 20, 2024, 12:24 AM
8
votes
4
answers
8493
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 shortcut. I wanted to turn this feature off. I managed to do it after some googling. To serve as a docum...
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 shortcut. I wanted to turn this feature off.
I managed to do it after some googling. To serve as a documentation, I am answering my own question below.
Somjit
(249 rep)
Apr 16, 2020, 07:39 PM
• Last activity: Jun 20, 2024, 07:13 AM
1
votes
0
answers
16
views
When opening folder via context menu VS code is being opened within that folder. But on other macbook Terminal is opened
[![enter image description here][1]][1] [1]: https://i.sstatic.net/wi6jlvRY.png When opening folder via context menu VS code is being opened within that folder. But on other macbook Terminal is opened.

Alisherbek Rakhimov
(11 rep)
Jun 11, 2024, 12:58 PM
• Last activity: Jun 11, 2024, 01:12 PM
9
votes
2
answers
20540
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. 1. When I found, I tried quitting the application by doing **right +click** on visual studio code icon and **quit**- **nothing happened**. 2. Then I tried **force quit -still nothing happened*...
Somehow My visual studio code froze when It was idle for some time and I was using my Injellij application.
1. When I found, I tried quitting the application by doing **right +click** on visual studio code icon and **quit**- **nothing happened**.
2. Then I tried **force quit -still nothing happened**.
3. opened activity monitor-saw electron(not responding)- tried quit and force quit- still nothing.
4. then tried everything from this post https://apple.stackexchange.com/questions/291328/how-to-killall-visual-studio-code-in-terminal?newreg=e161c24c4c714106838b9795514c23b9 -
still nothing.
Also in taskbar, the vscode icon is not present but if I try to relaunch, I get an error message saying
***"Another instance of Code is running but not responding Please close all other instances and try again."***
I am not sure what actually happened but if someone can help me to trace this and fix without restarting my system . I would also be happy if someone can help me find error logs for vscode or macos to investigate what actually happened. below are app and system information. **visual studio code**
package name: VSCode-darwin-universal.zip
version : 1.57.1 **system**
mac Os catalina
version 10.15.7
***"Another instance of Code is running but not responding Please close all other instances and try again."***
I am not sure what actually happened but if someone can help me to trace this and fix without restarting my system . I would also be happy if someone can help me find error logs for vscode or macos to investigate what actually happened. below are app and system information. **visual studio code**
package name: VSCode-darwin-universal.zip
version : 1.57.1 **system**
mac Os catalina
version 10.15.7
Arun Chouhan
(91 rep)
Jun 23, 2021, 05:59 PM
• Last activity: May 15, 2024, 02:03 PM
0
votes
0
answers
147
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 reinstalling the app. And completely removing all user settings: ``` #!/bin/sh rm -fvr ~/Library...
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 reinstalling the app. And completely removing all user settings:
#!/bin/sh
rm -fvr ~/Library/Preferences/com.microsoft.VSCode.plist
rm -fvr ~/Library/Caches/com.microsoft.VSCode
rm -fvr ~/Library/Caches/com.microsoft.VSCode.ShipIt/
rm -fvr ~/Library/Application\ Support/Code/
rm -fvr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fvr ~/.vscode/
Unfortunately nothing seems to help. Codium has the same problem.
Opening the application by clicking on it in the GUI works fine.
Opening the application from the command line in a different user profile also works fine. --> This makes me believe there is something in my profile messing with the application. But... I've deleted all Visual Studio Code user setting I even ran find ~/Library -iname "*vscode*" -exec rm -rfv {} \;
.
Any suggestions are welcome.
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Electron
Path: /Applications/Visual Studio Code.app/Contents/MacOS/Electron
Identifier: com.microsoft.VSCode
Version: 1.89.0 (1.89.0)
Code Type: ARM-64 (Native)
Parent Process: launchd
User ID: 501
Date/Time: 2024-05-06 13:05:43.2465 +0200
OS Version: macOS 14.4.1 (23E224)
Report Version: 12
Anonymous UUID: A768D014-9292-A323-443D-D16A2FB1D8CC
Sleep/Wake UUID: 69BF273A-BFD7-4318-85D6-10436589C244
Time Awake Since Boot: 4200 seconds
Time Since Wake: 452 seconds
System Integrity Protection: enabled
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000010df8035c
Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process: exc handler
Visual Studio Code version
Version: 1.89.0
Commit: b58957e67ee1e712cebf466b995adf4c5307b2bd
Date: 2024-05-01T02:10:13.496Z (5 days ago)
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.4.0
**Solved**
Turns out I had the following line in my .zshrc
profile
export SYSTEM_VERSION_COMPAT=1
Removing the line solved the issues.
Volsk
(3150 rep)
May 6, 2024, 01:27 PM
• Last activity: May 6, 2024, 02:11 PM
0
votes
0
answers
260
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 specified IP address, prompting the user to re-enter the password. Is there a solution available to...
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 specified IP address, prompting the user to re-enter the password. Is there a solution available to disable this automatic logout feature for SSH connections to ? Alternatively, is there a setting to adjust the auto-logout timer?
PS: I am currently using Version 1.85.1 (Universal) on my Mac.
subbu
(1 rep)
Jan 9, 2024, 06:59 AM
• Last activity: Jan 11, 2024, 07:41 AM
2
votes
0
answers
138
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: ``` from bs4 import BeautifulSoup import sys import csv from selenium import webdriver quit() ``` I...
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:
from bs4 import BeautifulSoup
import sys
import csv
from selenium import webdriver
quit()
If I comment out the selenium import line it runs when I call it from Excel.
I assume these are running in different environments.
I installed Selenium via pip in a terminal window which made it available to the debugger but not to whatever runs when I call it from Excel.
Any ideas about how to check and fix this?
Phil
(31 rep)
Dec 18, 2023, 05:36 PM
• Last activity: Dec 18, 2023, 06:38 PM
2
votes
2
answers
95
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: 1. Open a new file in VS Code, and also: 2. Automatically save that new file to my current working directory Basically I want to execute "touch hello.c | code hello.c" in one command. Is there an alias, function or s...
I have a question regarding a shortcut use of "code".
My Goal is to simultaneously:
1. Open a new file in VS Code, and also:
2. Automatically save that new file to my current working directory
Basically I want to execute "touch hello.c | code hello.c" in one command.
Is there an alias, function or shortcut I can include in .zshrc to help automate this combination of steps?
Drew P
(21 rep)
Nov 26, 2023, 08:08 PM
• Last activity: Nov 26, 2023, 08:41 PM
1
votes
0
answers
316
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 difficulties **running the terminal inside VS Code in Rosetta / "Intel mode"**. I'm using `poetry` to...
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 difficulties **running the terminal inside VS Code in Rosetta / "Intel mode"**.
I'm using poetry
to manage and install dependencies.
### What works: outside of VS Code
I can use conda to manage the virtual environment, and set some environment variables that enforce "Intel mode":
CONDA_SUBDIR=osx-64 conda create -n my-intel-env python=3.11 -y
conda activate my-intel-env
conda env config vars set CONDA_SUBDIR=osx-64
conda deactivate
conda activate my-intel-env
pip install "poetry==1.5.1"
poetry install --with dev
pyqt5
installs without issue:
...
• Installing pymiscutils (0.3.14)
• Installing pyqt5 (5.15.9)
• Installing requests-oauthlib (1.3.1)
...
### What I've tried: terminal settings
I tried adding a terminal profile in VS Code's settings.json
:
# settings.json
{
...
"terminal.integrated.profiles.osx": {
"bash_1": {
"path": "/opt/homebrew/bin/bash"
},
"bash_2": {
"path": "arch -x86_64 /opt/homebrew/bin/bash"
},
"zsh": {
"path": "/usr/bin/zsh"
}
},
...
}
However, this does not work; the profile "bash_2" cannot be selected from the Terminal menu:
![Screenshot of the Terminal menu with the missing 'bash_2' option ][4]
### What I've also tried: running VS Code via Rosetta
I tried to start the Intel version of VS Code, but this does not help; the terminal is a separate process and still does not run via Rosetta.
### What I can't do: upgrade
I cannot force the dependency to use pyqt6
instead of pyqt5
.
ElRudi
(223 rep)
Sep 25, 2023, 09:50 AM
• Last activity: Sep 28, 2023, 02:56 PM
1
votes
0
answers
185
views
C program opens terminal in VSCode of MacBook Air M1
I am running this code in VSCode on my MacBook Air M1 ``` #include int main(){ double pi=(double)355/113,r; printf("Enter the radius of the circle\n"); scanf("%lf",&r); printf("The area of the circle is: %f\n",pi*r*r); return 0; } ``` On clicking run c/c++ button, it opens an instance of the termina...
I am running this code in VSCode on my MacBook Air M1
The debug console loads .dylib files
This is my launch.json
#include
int main(){
double pi=(double)355/113,r;
printf("Enter the radius of the circle\n");
scanf("%lf",&r);
printf("The area of the circle is: %f\n",pi*r*r);
return 0;
}
On clicking run c/c++ button, it opens an instance of the terminal instead of the VSCode integrated terminal.
{
"configurations": [
{
"name": "C/C++: clang build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": true,
"MIMode": "lldb",
"preLaunchTask": "C/C++: clang build active file"
}
],
"version": "2.0.0"
}
this is my tasks.json
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: clang build active file",
"command": "/usr/bin/clang",
"args": [
"-fcolor-diagnostics",
"-fansi-escape-codes",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
How do I make it run in the integrated console?
Also, this problem is unique to C, Python & Java run in the VSCode integrated terminal without issues (and without CodeRunner)
Kartikey Doshi
(11 rep)
Sep 3, 2023, 07:41 PM
• Last activity: Sep 4, 2023, 12:00 AM
11
votes
1
answers
2057
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 process, VS Code starts running the update. The question is: Why can apps in the **Application...
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 process, VS Code starts running the update.
The question is: Why can apps in the **Applications** section take actions to update but not apps in the **Downloads** section?
Is Apple going to prevent any updates for apps that are in the **Downloads** section?
trongtoannguyen
(125 rep)
Jul 25, 2023, 03:21 PM
• Last activity: Jul 26, 2023, 03:37 AM
1
votes
1
answers
5203
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: [![VsCode CMake tools on Windows][1]][1] This allows the user to quickly switch build type and executables (targets) to build, debug or run. It also allows you to quickly switch between different co...
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 run. It also allows you to quickly switch between different compilers (not that I use this often but it is nevertheless neat).
On MacOS, however, the situation is different. No matter how I try and which How-To articles I follow I can't get that bottom pannel to display that information:
On all of the systems I have C++ compilers, Cmake and VsCode installed. I also have VsCode CMake and Cmake Tools extensions installed in VsCode and I assumed it should be enough for MacOS too but I clearly was wrong.
On MacOS I have cloned my project, opened it with VsCode, configured it via CMake extension, and selected a kit (compiler) but the bottom ribbon still looks the same and I don't understand how to make CMake-Tools-specific functionality appear. I can press


cmd+shift+P
, start typing "Cmake:..." and receive the list of commands to control the CMake flow but it is less convenient than simply having a ribbon at the bottom of the screen which allows me to change the configuration in only a few clicks.
Does someone know what am I missing here?
I have MacBook Pro Apple M1 13-inch 2020 with macOS Ventura 13.4.1
Don't suggest using XCode for development on macOS, please.
a_girl
(175 rep)
Jul 21, 2023, 10:34 AM
• Last activity: Jul 24, 2023, 04:07 PM
Showing page 1 of 20 total questions