Shortcut key to select word in Eclipse

后端 未结 4 882
傲寒
傲寒 2021-01-29 20:37

Is there any keyboard shortcut to select a word? Or may be it can be assigned some how?

相关标签:
4条回答
  • 2021-01-29 20:59

    Shift + Alt + selects enclosing elements.

    Shift + Alt + reverses Shift + Alt + .

    Shift + Alt + selects enclosing elements moving up the file.

    Shift + Alt + selects enclosing elements moving down the file.

    0 讨论(0)
  • 2021-01-29 21:05

    To select, you can use Shift + Alt + any arrow key.

    0 讨论(0)
  • 2021-01-29 21:08

    The quickest way to find any keyboard shortcut in Eclipse is to use Help->Key Assist (or Ctrl + Shift + L), which will pop up a nice tooltip with keyboard shortcuts and what they do. (If you press he Key Assist shortcut twice, you'll get the Keys Preferences page, which allows you to reassign shortcuts.)

    String |myFancyString = "FooBar";
    

    If your cursor is immediately to the left of 'm' (I am indicating this with a pipe (|)) :

    • Shift + Alt + (Select Next Element) would select 'myFancyString'

    • Shift + Alt + (Select Previous Element) would also select 'myFancyString'

    • Ctrl + Shift + (Select Next Word) would select 'my', repeating it would select 'myFancy', followed by 'myFancyString '

    0 讨论(0)
  • 2021-01-29 21:17

    Shift + Alt + selects the word surrounding the cursor

    0 讨论(0)
提交回复
热议问题