添加“ Vscode”选项,例如键入“ cmd”的方式在Windows File Explorer路径栏中工作
通过键入CMD
或PowerShell
到Windows File Explorer Path bar(上图),您可以在当前路径中打开CMD或PowerShell,您的文件Explorer所在。
但是如何关于vscode
?我可以将此vscode
添加到路径栏关键字中,以便我可以键入vscode
,按ENTER并快速在文件资源管理器中的目录中打开Visual Studio Code?如果是这样,怎么样?一些注册表魔术?
By typing cmd
or powershell
to the Windows File Explorer path bar (the photo above), you can open cmd or powershell in the current path your File Explorer is in.
But how about vscode
? Can I add this vscode
to the path bar keywords so I can type vscode
, press enter and quickly open Visual Studio Code in the directory the File Explorer is in? If so, how? Some registry magic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
刚刚发现,通过键入
code.cmd。
,您可以做我想做的事情。code.cmd。
太长了吗?让你覆盖了!转到
C:\ Program Files(X86)\ Microsoft VS Code \ bin
(这是默认路径,您的可能是不同的),将
code.cmd
复制到code.bat
,您现在可以在文件资源管理器的路径栏上键入
代码
,并更轻松地执行:DP.S。:您还可以更改
code.bat
到vscode.bat
之类的其他内容,您可以在路径栏上键入vscode
进行sameThing:dddJust found out that by typing
code.cmd .
, you can do the thing that I wanna do exactly.code.cmd .
is too long? Got you covered!Go to
C:\Program Files (x86)\Microsoft VS Code\bin
(This is default path, yours might be different)Copy the
code.cmd
tocode.bat
And you can now type
code
to the path bar of the File Explorer and do the samething easier :DP.S.: You can also change
code.bat
to something else likevscode.bat
and you can typevscode
to the path bar to do the samething :DDD