当前位置:网站首页>Set right click to select vs code to open the file
Set right click to select vs code to open the file
2022-07-02 23:03:00 【Bamboo stone seven】
One 、 Preface
Install on new computer VS Code after , Found on a file ( clip ) Right click the menu bar , of no avail VS Code Shortcut to open . Drag and drop files every time ( clip ), Or use VS Code Select open file in the menu bar of the interface ( clip ), It's a hassle . that , Now come with me , Solve this problem in a very simple way .
Two 、 Problem analysis and solution
2.1、 Problem analysis
The reason for this problem , In fact, you didn't check the installation and right-click to use VS Code Open configuration items .
Another picture , Let you see more intuitively why this problem occurs :
This is a VS Code Some installation options during installation , You can see the part circled in red in the figure :
EN: Add “Open with Code” action to Windows Explorer file context menu
chinese : stay Windows Add... To the Explorer file context menu “ Open with code ” operation
EN: Add “Open with Code” action to Windows Explorer directory context menu
chinese : stay Windows Add... To the Explorer directory context menu “ Open with code ” operation
See the two lines of configuration options I have proposed , Smart you should understand , Why do you right-click , of no avail VS Code Open menu options .
2.2、 Problem solving ( Please ignore my English version of the system )
2.2.1、 Method 1 ( recommend , Pro feasible measurement )
1、 see VS Code In the specific path of your computer
Because of my VS Code There are shortcuts on the desktop , So I directly select this shortcut, right-click and select “ attribute ”
2、 Copy the installation path 
3、 Create a new text document on the desktop ( Name at will )

4、 Copy the following code into this document
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="E:\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"E:\\Microsoft VS Code\\Code.exe\" \"%1\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="E:\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"E:\\Microsoft VS Code\\Code.exe\" \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="E:\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"E:\\Microsoft VS Code\\Code.exe\" \"%V\""
5、 take “2、 Copy the installation path ” Replace a place in the above code with the path in
Please pay attention to the scope of my red box , Don't modify the places I didn't circle , Pay attention to the “ \ ” Change to “ \ ”
6、 take . hinder “txt” Change the file extension to “reg”
Select “ yes ”

7、 Double click the file after modifying the extension , Run it
Always click the pop-up box after running “ determine ( Yes or Yes)” Button
8、 Set up the success ! Renderings show
If normalization , Above 7 After step execution , It has been successfully set up here , Look at a file now ( clip ) Effect after right clicking :
2.2.2、 Method 2
Modify registry , This method is also applicable to opening through other software , More applicable , I won't elaborate here , Attach a reference link to the blog :windows Right click to open the folder and add VS Code( The same is true for other software )
3、 ... and 、 explain
Reference link :
Super simple setting right button VS Code Open file
windows Right click to open the folder and add VS Code( The same is true for other software )
Welcome to the discussion 、 Study
边栏推荐
- PMP project integration management
- Webrtc audio and video capture and playback examples and mediastream media stream analysis
- 从底层结构开始学习FPGA----Xilinx ROM IP的定制与测试
- boot actuator - prometheus使用
- Chow-Liu Tree
- [chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
- [leetcode] most elements [169]
- Jerry's prototype has no touch, and the reinstallation becomes normal after dismantling [chapter]
- [LeetCode] 回文数【9】
- 数据分析学习记录(二)---响应曲面法及Design-Expert的简单使用
猜你喜欢
![[Solved] Splunk: Cannot get username when all users are selected“](/img/13/1e824c8005701e21fc5b4e73308d53.png)
[Solved] Splunk: Cannot get username when all users are selected“

海思3559万能平台搭建:在截获的YUV图像上画框

性能优化----严苛模式

Jatpack------LiveData

China Academy of information technology, Tsinghua University, Tencent security, cloud native security, industry university research and use strong alliance!

严守工期,确保质量,这家AI数据标注公司做到了!

P1007 独木桥

世界环境日 | 周大福用心服务推动减碳环保

数据分析学习记录(二)---响应曲面法及Design-Expert的简单使用

【板栗糖GIS】arcmap—为什么使用自定义捕捉的时候,经典捕捉的勾要去掉呢?
随机推荐
Chow-Liu Tree
Go语言sqlx库操作SQLite3数据库增删改查
Golang的学习路线
情感对话识别与生成简述
成功改变splunk 默认URL root path
容器化技术在嵌入式领域的应用
【喜欢的诗词】好了歌
Pytorch training CPU usage continues to grow (Bug)
P1007 独木桥
[LeetCode] 数组中的第K个最大元素【215】
静态文件显示问题
Xshell configuration xforward forwarding Firefox browser
Go multithreaded data search
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
移动端 1px 像素兼容性问题,实现1px 边框
[LeetCode] 回文数【9】
Gas station [problem analysis - > problem conversion - > greed]
【硬件】标准阻值的由来
数据标注典型案例,景联文科技如何助力企业搭建数据方案
P7072 [CSP-J2020] 直播获奖