A GNOME Shell extension that gives you vscode workspace management features
GPL-3.0 License
VSCode Nautilus Extension is a project that provides a GNOME Shell extension for accessing visual studio code/codium recently opened workspaces/directories.
With workspace support, you can open a workspace in Visual Studio Code with a single click.
Provided are two other, optional, extensions for Nautilus.
The first, vscode_nautilus_workspaces.py
, adds a right-click context menu to select from a list of recently accessed workspaces or directories and open in Visual Studio Code.
The second, vscode_nautilus_open.py
, adds a right-click context menu to open a folder or file in Visual Studio Code.
bash <(wget -qO- https://raw.githubusercontent.com/ZanzyTHEbar/vscode-nautilus/main/install.sh)
To uninstall a GNOME Shell extension, you can use the GNOME Tweaks application or the gnome-extensions
command.
gnome-extensions disable [email protected]
gnome-extensions uninstall [email protected]
You can also remove the directory manually.
rm -rf ~/.local/share/gnome-shell/extensions/[email protected]
rm -f ~/.local/share/nautilus-python/extensions/vscode_nautilus_workspaces.py
rm -f ~/.local/share/nautilus-python/extensions/vscode_nautilus_open.py
To open a folder or file in Visual Studio Code, right-click on an item in Nautilus and select the "Open in Code" option.
To open a recent folder or workspace, right-click on an empty space in Nautilus and select the "Open Recent Workspaces" option.
To open a recent folder or workspace, click on the Visual Studio Code icon in the top bar and select a recent folder or workspace.
You also have various options to configure the extension in the GNOME Tweaks application.
Integrates well with the VSCode Search Provider.
The latest development version requires git
, node
, and make
.
I use pnpm
, but you can use npm
or yarn
if you prefer. It is up to you to modify the scripts to use your preferred package manager.
Navigate to your desired directory and execute following commands in the terminal:
git clone https://github.com/ZanzyTHEbar/vscode-nautilus.git
cd vscode-nautilus/gnome-extension
make && make pack && make install
You can run make help
to see all available commands.
After installation you need to enable the extension.
ALt
+ F2
, r
, Enter
, or Log-Out/Log-In if you use Wayland)If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome 😄