VS代码:提出Ctrl+ p命令pallette,但没有“”在其中
当您按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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在命令托盘(或魔术文本框: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 isCTRL+P