VS代码:提出Ctrl+ p命令pallette,但没有“”在其中

发布于 2025-01-26 02:08:19 字数 871 浏览 2 评论 0原文

当您按ctrl + shift + p(或任何您绑定到的任何东西)中,命令调色板会弹出。它带有一个角度括号> 字符串,您可以输入访问命令,例如>折叠所有, 。

但是大多数时候,我相反使用此 magical textbox 通过@function或通过#function ,或者只是打开文件myfile.py

因此,每次我按ctrl + shift + p时,我必须立即使用backspace进行跟进以删除角度支架>,以便中的字符串中的字符串Magical Textbox 以适当的@ >的字符INSTAD开始。

可悲的是,键入> @function不搜索函数,因此必须手动删除角度括号>

如何获得VS代码来提出 Magical Textbox 但不插入角色字符>

(注意:我知道我只能写一个AHK或类似的宏来跟进Ctrl + Shift + P带有backspace,但我不相信宏中的背景。)

另外,如何访问具有类似@function搜索行为的搜索框? (答案绝对是 不是 ctrl + f。)

When you press Ctrl + Shift + P (or whatever you bind it to) in VS Code a Command Palette pops up. It brings up a magical textbox with a angle bracket > string in it that you can type in to access commands, like >fold all.

But most of the time I instead use this magical textbox to search for functions or objects in my code via @function or in all dependencies via #function, or just open files myfile.py.

So every time I press Ctrl + Shift + P I immediately have to follow it up with a backspace to remove angle bracket >, so that the string in the magical textbox starts with the appropriate @ or # character instad of >.

Sadly, typing >@function does not search for function, so the angle bracket > has to be removed manually.

How do I get VS Code to bring up the magical textbox but not insert the angle character >?

(Note: I know I could just write an AHK or similar macro to follow up Ctrl + Shift + P with a backspace, but I don't trust backspaces in a macro.)

Alternately, how do I access a search box with similar @function search behaviour? (The answer is definitely not Ctrl + F.)

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

橙幽之幻 2025-02-02 02:08:19

您可以在命令托盘(或魔术文本框:d)中键入键盘快捷键来查看快捷方式,然后搜索“转到文件”,默认为ctrl+p

You can look the shortcuts just type Keyboard Shortcuts in the command pallet (or magic textbox :D) and search for "Go to File", default it is CTRL+P

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文