Because the default storage location of the VSCode plug-in is under the C drive, I don’t like it very much, because it eats the C drive memory too much, the location is not easy to remember, and it is not convenient to manage.
(Ps: These are all excuses, bloggers have a strong desire to control!)
I also checked some information online, and finally summarized as follows:
1. Install vscode :
Save to the target directory, such as: F:\Vscode\Microsoft VS Code;
2. cmd to modify the plug-in installation location:
Open the dos command window in the installation directory, enter: code --extensions-dir target folder, press Enter, the modification of the plug-in location is now complete;
But if the shortcut key opens vscode, you will find that it does not take effect.
3. Continue: Modify the target parameters of the shortcut keys:
Open the shortcut key properties:
Modify the target input box to: "F:\Vscode\Microsoft VS Code\Code.exe" --extensions-dir "F:\Vscode\Microsoft VS Code\plugins" (Note: fill in your own vscode installation directory and plug-in directory here , The former is the blogger’s vscode directory, the latter is the plugin directory);
Here the shortcut key parameter modification is completed, and it has taken effect in the shortcut key open mode;
However, if you open it with the right-click menu, you will find that the configuration does not take effect when you open vscode in this way;
4. Continue: Configure the right mouse button menu:
(1) If you originally have a right-click option, modify the parameters under command:
1) Win+R, open the running window, enter: regedit, press Enter, and open the registry;
2) Edit -> Find, search for VSCode, or directly search: computer\HKEY_CLASSES_ROOT\*\shell\VSCode\command,
3) Modify the data as:
"F:\Vscode\Microsoft VS Code\Code.exe" --extensions-dir "F:\Vscode\Microsoft VS Code\plugins" "%1"
(Similarly, subject to your own computer catalog)
At this point, the right-click menu configuration is completed and has taken effect;
(2) If there is no right-click menu option before, you want to add:
1) Click on HKEY_CLASSES_ROOT in turn ---> * ---> shell,
2) Right-click the shell and create a new item. A folder will appear for you to name, write the name of the file you want to add, and right-click the named folder to create a new item. Name it command.
3) Specific parameters can imitate existing items, the same as above:
"F:\Vscode\Microsoft VS Code\Code.exe" --extensions-dir "F:\Vscode\Microsoft VS Code\plugins" "%1"
(Subject to your own computer catalog)
OK, you're done! Now you can play with your own vscode! ! !
Because the default storage location of the VSCode plug-in is under the C drive, I don’t like it very much, because it eats the C drive memory too much, the location is not easy to remember, and it is not convenient to manage.
(Ps: These are all excuses, bloggers have a strong desire to control!)
I also checked some information online, and finally summarized as follows:
1. Install vscode :
Save to the target directory, such as: F:\Vscode\Microsoft VS Code;
2. cmd to modify the plug-in installation location:
Open the dos command window in the installation directory, enter: code --extensions-dir target folder, press Enter, the modification of the plug-in location is now complete;
But if the shortcut key opens vscode, you will find that it does not take effect.
3. Continue: Modify the target parameters of the shortcut keys:
Open the shortcut key properties:
Modify the target input box to: "F:\Vscode\Microsoft VS Code\Code.exe" --extensions-dir "F:\Vscode\Microsoft VS Code\plugins" (Note: fill in your own vscode installation directory and plug-in directory here , The former is the blogger’s vscode directory, the latter is the plugin directory);
Here the shortcut key parameter modification is completed, and it has taken effect in the shortcut key open mode;
However, if you open it with the right-click menu, you will find that the configuration does not take effect when you open vscode in this way;
4. Continue: Configure the right mouse button menu:
(1) If you originally have a right-click option, modify the parameters under command:
1) Win+R, open the running window, enter: regedit, press Enter, and open the registry;
2) Edit -> Find, search for VSCode, or directly search: computer\HKEY_CLASSES_ROOT\*\shell\VSCode\command,
3) Modify the data as:
"F:\Vscode\Microsoft VS Code\Code.exe" --extensions-dir "F:\Vscode\Microsoft VS Code\plugins" "%1"
(Similarly, subject to your own computer catalog)
At this point, the right-click menu configuration is completed and has taken effect;
(2) If there is no right-click menu option before, you want to add:
1) Click on HKEY_CLASSES_ROOT in turn ---> * ---> shell,
2) Right-click the shell and create a new item. A folder will appear for you to name, write the name of the file you want to add, and right-click the named folder to create a new item. Name it command.
3) Specific parameters can imitate existing items, the same as above:
"F:\Vscode\Microsoft VS Code\Code.exe" --extensions-dir "F:\Vscode\Microsoft VS Code\plugins" "%1"
(Subject to your own computer catalog)
OK, you're done! Now you can play with your own vscode! ! !