Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cnmoro/6a8928716076c06fe95cf7b608d517c8 to your computer and use it in GitHub Desktop.
Save cnmoro/6a8928716076c06fe95cf7b608d517c8 to your computer and use it in GitHub Desktop.
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment