Open the folder directly: right-click the menu, use the specified [tool] to open files and folders (open via IDEA/VScode)

Table of contents

1. Open the Registry Editor

 1. Press and hold the win key on the keyboard, and then press and hold the r key.

 2. Next, please enter regedit and click OK.

2. Options when configuring the right-click file [Note: File]

1. Find the configuration directory

 2. Create a new item in the shell for configuration:

Open through IDEA:

1. Create a new item and name it IDEA 

2. In IDEA, create a new string value, name it Icon, and the value data is your idea path

3. Add a new item command under IDEA, and modify the default value to "installation path" "%1"

4. Right-click the file and test it

5. Change it to "Open via IDEA"

The configuration is complete:

 Open via VS code:

1. Create a new item and name it VisualCode

2. In IDEA, create a new string value, name it Icon, and the value data is your idea path

3. Add an item command under VisualCode, and modify the default value to "installation path" "%1"

4. Right-click the file and test it

The configuration is complete:


As a programmer, one thing I often do is to open a (code) file or project folder with a code editor 

The former can also be opened by double-clicking directly by setting the default program, but the latter has only two options:

1. Open the editor, drag in the entire project folder 2. In the opened editor, click File -> Open Folder in the upper left corner.

For example, if we directly [right click] here and want to use IDEA or visual studio code to open it, it will not be displayed. 

However, after installation, many software will provide shortcut operations when you right-click a file or folder for easy operation, just like this:

How is this done? The secrets are hidden in 注册表it! Let's take a look together.

The registry (Registry) is an important hierarchical database in the windows operating system and its applications, which is used to store the setting information of the system and applications.

 ❗❗❗ The content in the registration form is very important, except for the part shown in this article, do not modify the rest at will!!!

1. Open the Registry Editor

Open Registry Editor :

 1. Press and hold the win key on the keyboard, and then press and hold the r key.

As expected you should see this:

osk is an on-screen keyboard I used before. There are many related operations. You can check and learn, or check more commands to facilitate our operations:

Win+R to run the combination key command collection - short book (jianshu.com)

 2. Next, please enter regeditand click OK.

 You should see this: 

    

 All operations in this article are only performed in HKEY_LOCAL_MACHINE .

2. Options when configuring the right-click file [Note: File]

1. Find the configuration directory

Open in turn

【Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell】 

 2. Create a new item in the shell for configuration:

  • Open through IDEA:

1. Create a new item and name it IDEA 

2. In IDEA, create a new string value, name it Icon, and the value data is your idea path

 

 

My location is: "D:\JetBrains\IntelliJ IDEA 2019.3.3\bin\idea64.exe"

3. Add a new item command under IDEA, and modify the default value to "installation path" "%1"

4. Right-click the file and test it

5. Change it to "Open via IDEA"

The configuration is complete:

  •  Open via VS code:

1. Create a new item and name it VisualCode

2. In IDEA, create a new string value, name it Icon, and the value data is your idea path

 

My location is: "D:\software\Microsoft VS Code\Code.exe"

3. Add an item command under VisualCode, and modify the default value to "installation path" "%1"

4. Right-click the file and test it

The configuration is complete:

 

Finally, in order to prevent everyone from making mistakes, or students who are too lazy to operate, the registry of idea configuration is specially exported. You can download it by yourself, and it will be automatically added to the registry by clicking it! !

But try not to use it after following the process~~~~~~~~~ 

 Link: https://tanyiqu.lanzoui.com/b0cqlg19g 

Guess you like

Origin blog.csdn.net/weixin_46474921/article/details/126906151