Last active
July 30, 2021 10:38
-
-
Save roman-yagodin/9d4ad8a99d5b7649b66f to your computer and use it in GitHub Desktop.
Nemo action to open folder in VSCode (somewhat obsolete)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Nemo Action] | |
# https://wiki.archlinux.org/index.php/Nemo | |
# https://github.com/linuxmint/nemo/blob/master/files/usr/share/nemo/actions/sample.nemo_action | |
Name=Open in VS Code | |
Name[ru]=Открыть в VS Code | |
Comment=Open current folder in Visual Studio Code | |
Comment[ru]=Открыть текущую папку в Visual Studio Code | |
Icon-Name=com.visualstudio.code | |
Selection=none | |
Extensions=any; | |
#Quote=double | |
EscapeSpaces=true | |
Exec=code %P | |
Dependencies=code; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Nemo Action] | |
# https://wiki.archlinux.org/index.php/Nemo | |
# https://github.com/linuxmint/nemo/blob/master/files/usr/share/nemo/actions/sample.nemo_action | |
Name=Open in VS Code | |
Name[ru]=Открыть в VS Code | |
Comment=Open selected folder in Visual Studio Code | |
Comment[ru]=Открыть выбранную папку в Visual Studio Code | |
Icon-Name=com.visualstudio.code | |
Selection=s | |
Extensions=dir; | |
#Quote=double | |
EscapeSpaces=true | |
Exec=code %P/%f | |
Dependencies=code; |
Yes, two actions would be better for this case, than just one - currently there is no way to combine different types of selections in one action, AFAIK.
Updated gist, also simplified Exec
lines - looks like /bin/sh
part is not necessary now.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're right I didn't think of that. Although it is an extra click (or hover) to get to it:
Right Click on a folder -> Open With -> Visual Studio Code
If you check out my fork, I also added another nemo action so that you can right click in a directory and it will open that directory as a folder in VSCode.