【问题标题】:What's the Eclipse keyboard shortcut to select the variable name / to expand the selection?选择变量名称 / 扩展选择的 Eclipse 键盘快捷键是什么?
【发布时间】:2015-01-13 12:04:18
【问题描述】:

示例

给定变量名myVariableName[cursor] 表示的光标位置

String [cursor]myVariablenName = new String()

选择整个变量的键盘快捷键是什么?

阐述

Ctrl+Shift+Right 只选择my

Ctrl+Shift+Right+Right+Right选择整个变量名myVariableName,但是按键次数太多了。

【问题讨论】:

    标签: eclipse keyboard-shortcuts


    【解决方案1】:

    使用 Alt+Shift+Up。它调用Select Enclosing Element 命令。

    它适用于所有可能的情况,例如

    [cursor]myVariablenName
    

    myVar[cursor]iablenName
    

    myVariablenName[cursor]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-11
      • 2021-11-16
      • 2011-02-10
      相关资源
      最近更新 更多