1. Win+R打开运行,输入regedit.exe打开注册表编辑器

Python——Win10下修改Python默认打开方式为VS code

2.找到:计算机\HKEY_CLASSES_ROOT\Python.File\Shell\open\command 

修改值为VS Code的安装位置的Code.exe,

Python——Win10下修改Python默认打开方式为VS code

 如果是默认安装位置,则为"C:\Program Files\Microsoft VS Code\Code.exe" "%1"

Sublime Text同理

“D:\Sublime Text\sublime_text.exe" "%1"

相关文章:

  • 2022-01-15
  • 2021-04-20
  • 2021-06-30
  • 2021-07-06
  • 2021-04-03
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-12-05
  • 2021-12-26
  • 2021-06-06
  • 2021-12-26
  • 2021-08-27
相关资源
相似解决方案