如何使用键盘快捷键使用VS代码打开文件夹或文件?

发布于 2025-02-05 19:10:00 字数 342 浏览 0 评论 0原文

我正在使用Windows 11,您可能知道,当您右键单击文件资源管理器时,它具有不同的上下文菜单。如果要访问选项的完整列表,则必须单击“显示更多选项”,然后如果要打开带有VS代码的特定文件或文件夹,则必须在该扩展上下文菜单中查找该选项。但是,正如您可能已经猜到的那样,这很乏味,我想使用一个键盘快捷键(例如Ctrl+b)进行2步骤。就像,当我按CTRL+B时,它应该打开我目前使用VS代码的文件夹,或者,如果我单击鼠标,请点击文件或文件夹,请在按CTRL+B之后打开该文件或文件夹。我什至不知道是否可能。我用谷歌搜索了它,有人使用“自动热钥匙”应用程序做到了这一点,但同样对我不起作用。而且,这有点货,它正在关闭一些敞开的窗户。因此,如果有人知道解决方案,我很高兴听到。

I'm using Windows 11 and as you may know, it has different context menu when you right click in file explorer. If you want to access full list of options, you have to click "Show more options", and then if you want to open a particular file or folder with VS Code, you have to look for that option in that extended context menu. But as you might have already guessed it, it's tedious and I would like to do that 2 step process with one keyboard shortcut like Ctrl+b. Like, when I press Ctrl+b, it should open the folder I'm in at the moment with VS Code, or, if I highlight a file or folder with mouse click, it should open that file or folder after pressing Ctrl+b. I don't even know if it's possible. I googled it and some guy did it with "Auto hot key" app, but the same didn't work for me. And also, it was a bit buggy and it was closing some open windows. So, if anyone knows a solution, I would be glad to hear.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文