cnmoro
12/2/2019 - 1:26 PM

Nemo - Open Visual Studio Code in the current directory via context menu

Nemo - Open Visual Studio Code in the current directory via context menu

Nemo - Open Visual Studio Code in the current directory via context menu
Save this file under ~/.local/share/nemo/actions/ to allow launching VS Code in the current folder by right-clicking on empty space, like in MS Windows.

Replace code with code-oss in lines 5 and 10 if you are using the "Microsoft Code" open source edition.

If you have "Show icons in menus" enabled in Nemo, do this:

sudo ln -sf "/usr/share/code/resources/app/resources/linux/code.png" "/usr/local/share/icons/code.png"

>>>>>>>>>> (file vscode-current-dir.nemo_action)

[Nemo Action]

Name=Open with Code
Comment=Opens VSCode in the current directory
Exec=code %P
Icon-Name=code
Selection=none
Extensions=any;
Quote=double
Dependencies=code;