当前位置:网站首页>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
边栏推荐
- Lc173. Binary search tree iterator
- 海思3559万能平台搭建:在截获的YUV图像上旋转操作
- 世界环境日 | 周大福用心服务推动减碳环保
- 【板栗糖GIS】arcscene—如何做出有高度的高程图
- Boot actuator - Prometheus use
- 加油站[问题分析->问题转换->贪心]
- 数据标注典型案例,景联文科技如何助力企业搭建数据方案
- Jerry's prototype will trigger shutdown after multiple touches [chapter]
- [羊城杯2020]easyphp
- The kth largest element in the [leetcode] array [215]
猜你喜欢
Odoo13 build a hospital HRP environment (detailed steps)
[LeetCode] 反转字符串中的单词 III【557】
泛型与反射,看这篇就够了
Splunk audit setting
Innovation strength is recognized again! Tencent security MSS was the pioneer of cloud native security guard in 2022
MySQL reset password, forget password, reset root password, reset MySQL password
Webrtc audio and video capture and playback examples and mediastream media stream analysis
Qt QSplitter拆分器
[leetcode] most elements [169]
Learning records of data analysis (II) -- simple use of response surface method and design expert
随机推荐
PMP project integration management
Xshell configuration xforward forwarding Firefox browser
[chestnut sugar GIS] ArcScene - how to make elevation map with height
用sentinel熔断比例阈值改不了,设置慢调用比例没效果
MySQL查询附近的数据.并按距离进行排序.
性能优化----严苛模式
严守工期,确保质量,这家AI数据标注公司做到了!
Splunk audit 的设定
Go condition variable
go 多线程数据搜索
P7072 [csp-j2020] live broadcast Award
从底层结构开始学习FPGA----Xilinx ROM IP的定制与测试
Gas station [problem analysis - > problem conversion - > greed]
Golang's learning route
Freshman learning sharing
mysql重置密码,忘记密码,重置root密码,重置mysql密码
Go multithreaded data search
Addition, deletion, modification and query of handwritten ORM (object relationship mapping)
Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
设置单击右键可以选择用VS Code打开文件