Qt Creator 中的 Ctrl+Shift+Space 等效吗?
在 Visual Studio 中(至少使用 VAssistX),我可以使用 Ctrl+Shift+Space 为光标当前所在的任何函数显示这种工具提示。在 Qt Creator 中,仅当您第一次键入函数调用时才会显示此工具提示,所以我必须删除左括号,然后再次输入,这会欺骗编辑器我刚刚开始输入函数调用并显示工具提示。
In Visual Studio (with VAssistX at least), I can use Ctrl+Shift+Space to show this kind of tooltip for any function in which the cursor is currently in. In Qt Creator this tooltip is shown only when you first type the function call, so I have to go and delete the opening parenthesis, then type it again, which fools the editor that I just started typing function call and it shows the tooltip.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果当光标位于函数左大括号的任一侧时按 Ctrl+Space,则 Qt Creator 将显示工具提示。
您还可以编写一个逗号(然后将其删除)来强制显示工具提示 - 在大括号之间的任意位置编写一个逗号将显示工具提示。
If you press Ctrl+Space when the cursor is on either side of the opening brace of the function then Qt Creator shows the tooltip.
You can also write a comma (and then delete it) to force the tooltip to appear - writing a comma anywhere between the braces will show the tooltip.