While this doesn’t solve the spaces in paths issue, there is a way to get Visual Studio Code working as the text editor in KiCad on macOS.
-
In VS Code, open the Command Palette (Shift+Command+P) and type
shell command
-
There should be an option
Shell Command: Install 'code' command in PATH
, select this -
VS Code will do its thing and install it – for me the default path was
/usr/local/bin/code
, you can check in Terminal by typingwhich code
and it will print out the correct path -
In KiCad Text editor preferences, type:
/usr/local/bin/code
(or whatever your path is) -
Now KiCad will use VS Code as its text editor!