Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to make vscode right-click the project folder to open

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to make vscode right-click the project folder to open, I hope you will learn a lot after reading this article, let's discuss it together!

Vscode right-click the method to open the project folder:

Due to the previous installation of VSCODE, did not pay attention to detailed reading tips, and the first installation is relatively casual, only with want to try the VSCODE installation, so the installation missed the check open with code this very useful feature!

How did I find out? Because recently, when I was learning VUE.JS, I always had to open a folder, but I found that people could right-click to open it, but I had to open VSCODE and open the folder first. how troublesome it is, isn't it? Later, I checked it and found that I missed this option and cried!

My environment

Win10

Vscode v1.31.1

So how should we solve this problem?

After looking at the methods on the Internet, there are two ways:

Reinstall VSCODE, reinstall Dafa is good, is there? (no, it's troublesome to reinstall a lot of plug-ins.)

Modify the registry (it's not difficult at all, but be careful)

I won't talk about it if I reinstall it. Everyone can do it, right?

Modify the registry

1. First create a new text file

two。 Enter the following code in the text file to modify the registry. Note here that the path should be changed to the absolute path of VSCODE on your computer, and pay attention to the writing of the path, because in the string, pay attention to the escape of\

The code is as follows:

Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\ *\ shell\ VSCode] @ = "Open with Code"Icon" = "C:\\ Users\\ ticktock\\ AppData\\ Local\\ Programs\\ Microsoft VSCode\ Code.exe" [HKEY_CLASSES_ROOT\ *\ shell\ VSCode\ command] @ = "\" C:\\ Users\\ ticktock\\ AppData\ Local\ Programs\\ Microsoft VSCode\ Code.exe\ "% 1\" Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\ Directory\ shell\ VSCode] @ = "Open with Code"Icon" = "C:\\ Users\\ ticktock\\ AppData\\ Local\\ Programs\\ Microsoft VSCode\ Code.exe" [HKEY_CLASSES_ROOT\ Directory\ shell\ VSCode\ command] @ = "\" C:\\ Users\\ ticktock\ AppData\\ Local\\ Programs\\ Microsoft VSCode\ Code.exe\ "\% V\" Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\ Directory\ Background\ shell\ VSCode] @ = "Open with Code"Icon" = "C:\\ Users\\ ticktock\\ AppData\\ Local\\ Programs\\ Microsoft VSCode\ Code.exe" [HKEY_CLASSES_ROOT\ Directory\ Background\ shell\ VSCode\ command] @ = "\" C:\\ Users\\ ticktock\\ AppData\ Local\\ Programs\ Microsoft VSCode\\ Code.exe\ "% V\"

3. Save the file, put it anywhere, and name it: vsCodeOpenFolder.reg. It doesn't matter why you name it here, but the suffix must be .reg.

4. Finally, double-click to open the file

Here will be prompted, click "OK" or "Yes" on it, and finally done!

5. Try to right-test on the desktop to see if it has been added successfully. If not, try opening .reg with administrator privileges in step 4.

After reading this article, I believe you have a certain understanding of how to make the vscode right-click project folder open, want to know more about it, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report