How do I enable the column selection mode in Eclipse?

后端 未结 8 1313
我寻月下人不归
我寻月下人不归 2020-11-30 16:35

News wrote that Eclipse 3.5 finally supports column selection. Unfortunately I don\'t know HOW to enable it. I tried pressing the ALT-key like I am used to in Visual Studio

相关标签:
8条回答
  • 2020-11-30 16:52

    To activate the cursor and select the columns you want to select use:

    Windows: Alt+Shift+A

    Mac: command + option + A

    Linux-based OS: Alt+Shift+A

    To deactivate, press the keys again.

    This information was taken from DJ's Java Blog.

    0 讨论(0)
  • 2020-11-30 16:53

    On Windows and Linux, it's AltShiftA, as RichieHindle pointed out. On OSX it's OptionCommandA (A). It's also worth noting that the two modes can have different font preferences, so if you've changed the default text font, it can be jarring to toggle block selection modes and see the font change.

    Finally, the "search commands" (Ctrl3 or Command3) pop-up will find it for you if you type block. This is useful if you use the feature just frequently enough to forget the hotkey.

    0 讨论(0)
  • 2020-11-30 16:53

    As RichieHindle pointed out the shortcut for column (block) selection is Alt+Shift+A. The problem I ran into is that the Android SDK on Eclipse uses 3 shortcuts that all start with Alt+Shift+A, so if you type that, you'll be given a choice of continuing with D, S, or R.

    To solve this I redefined the column selection as Alt+Shift+A,A (Alt, Shift, A pressed together and then followed by a subsequent A). To do this go to Windows > Preferences then type keys or navigate to General > Keys. Under the Keys enter the filter text of block selection to quickly find the shortcut listing for toggle block selection. Here you can adjust the shortcut for column selection as you wish.

    0 讨论(0)
  • 2020-11-30 17:03

    Additionally, you can change the keys view window -> preferences then type: 'keys' and when the key preference page opens you can type 'toggle block selection' and voila!

    0 讨论(0)
  • 2020-11-30 17:03
    • Press Alt + Shift + A
    • Observe that the screen zooms out
    • Make selection using the mouse
    • Press Alt + Shift + A to go back to the old mode.
    0 讨论(0)
  • 2020-11-30 17:05

    First of all your mouse key must be focus in editor to enable Toggle Block Selection Mode

    enter image description here

    Click on toggleButton as shown in figure and it will enable Vertical selection. After selection toggle it again.

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