4

Open VS Code/Insiders directly within any folder in Linux

 2 years ago
source link: https://dev.to/fahimfba/open-vs-codeinsiders-directly-within-any-folder-in-linux-2n9d
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Cover image for Open VS Code/Insiders directly within any folder in Linux

Open VS Code/Insiders directly within any folder in Linux

In Windows operating system, we prefer to enable the context menu option of Visual Studio Code or Visual Studio Code Insiders so that we can open the VS Code/Insiders within any folder we want.

If I simply zoom in the image a little bit, then we can get a clear view of that. Although I am providing the visual glimpse on a Windows 11 machine, it works similarly in Windows 7, 8, 8.1, 10 as well.

When using Linux Operating System, sometimes we want to open the VS Code/Insiders directly within a folder by using the right mouse button clicking context menu. Sadly, it does not appear there by default. Don't worry, we can enable that feature in any Linux distribution based operating system as well. You can do that by following two simple tricks, but I will show you the most simple trick I always use.

  • Open the terminal / konsole.
  • Copy and paste the following command:
wget -qO- https://raw.githubusercontent.com/harry-cpp/code-nautilus/master/install.sh | bash
Enter fullscreen modeExit fullscreen mode
  • Press on the Enter key. Provide the password as well if it asks for that.
  • Optional: Run an update and upgrade of the system. You can do that using the terminal as well. Like, for the debian based distributions, you can use the following command.
sudo apt update && sudo apt upgrade -y
Enter fullscreen modeExit fullscreen mode

Change the necessary command (sudo dnf / pamac) if you are on other distributions (Arch/RPM/etc.).

  • Now you are good to go. The feature has been enabled globally.

Thanks for reading this entire article. You may follow me on GitHub, LinkedIn, Twitter, YouTube as well. Have a nice day!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK