intellij-idea - 在 IntelliJ(或也可能是其他 IDE)中摆脱括号的快捷方式

标签 intellij-idea shortcut

比方说 |是一个游标指针。我想要做的是在我完成输入参数后从括号中退出。分步说明:

// 1: type function name
void function|

// 2: openening paren automatically generate closing paren for convenience
void function(|)

// 3: type paremeters...
void function(42|)

// 4: ...and get out of parenthesis!
void function(42)|

通常我使用右箭头来做到这一点,但是使用箭头不是那么方便,我想知道是否有任何快捷方式。我对 IntelliJ 感到好奇,但如果您能告诉我任何其他 Jetbrain IDE 或 Visual Studio 等的快捷方式,那就太好了。

最佳答案

我认为您正在寻找 Ctrl + Shift + Enter (在 Windows 上)。操作名称是 Complete Current Statement

在 Mac 上,如果您想知道快捷键调用 Command + Shift + A(查找操作),然后输入 Complete Current Statement 它还会向您显示操作的快捷方式

enter image description here

关于intellij-idea - 在 IntelliJ(或也可能是其他 IDE)中摆脱括号的快捷方式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37267570/

相关文章:

javascript - 在 IntelliJ IDEA 中,如何在使用 TypeScript 时从 "Find Usage"结果中过滤出 JS 文件?

intellij-idea - 如何确定文件需要使用 IntelliJ 打开?

wix - 为所有用户安装可选的桌面快捷方式

Vim 将光标移动到下一行的开头

android - 缺少 Android Studio git/linecount 工具栏

python - 如何在 Sublime Text 编辑器中清除控制台

java - Vavr 注释处理工具未启动

intellij idea IDE 中的 Javaee

android - Android构建目标为 “No toolchains found in the NDK toolchains”

windows - 从桌面快捷方式运行命令提示符命令