vscode添加到右鍵菜單【win10系統】


vscode添加到右鍵菜單,win10系統
1、新建文件test.reg,(名字可以隨便取,后綴得是reg)
2、復制一下代碼,到文件中
3、替換“D:\\software\\Microsoft VS Code”為自己的安裝目錄【注意:路徑分割是雙\\,如果你是從資源管理器中復制的地址的話是但個\,會出錯】,轉義
4、保存退出
5、雙擊文件圖標,運行就可以了
 1 Windows Registry Editor Version 5.00
 2 
 3  
 4 
 5 [HKEY_CLASSES_ROOT\*\shell\VSCode]
 6 
 7 @="Open with Code"
 8 
 9 "Icon"="D:\\software\\Microsoft VS Code\\Code.exe"
10 
11  
12 
13 [HKEY_CLASSES_ROOT\*\shell\VSCode\command]
14 
15 @="\"D:\\software\\Microsoft VS Code\\Code.exe\" \"%1\""
16 
17  
18 
19 Windows Registry Editor Version 5.00
20 
21  
22 
23 [HKEY_CLASSES_ROOT\Directory\shell\VSCode]
24 
25 @="Open with Code"
26 
27 "Icon"="D:\\software\\Microsoft VS Code\\Code.exe"
28 
29  
30 
31 [HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
32 
33 @="\"D:\\software\\Microsoft VS Code\\Code.exe\" \"%V\""
34 
35  
36 
37 Windows Registry Editor Version 5.00
38 
39  
40 
41 [HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
42 
43 @="Open with Code"
44 
45 "Icon"="D:\\software\\Microsoft VS Code\\Code.exe"
46 
47  
48 
49 [HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
50 
51 @="\"D:\\software\\Microsoft VS Code\\Code.exe\" \"%V\""

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM