简体   繁体   中英

Multiple selection in intellij-idea?

Is it possible to do multiple selections and change them at the same time like in sublimetext2 editor ( sublimetext )?

There is column selection mode , but it doesn't provide the same features, please vote for this request:

This is finally available!

IntelliJ IDEA 13.1 introduces Sublime style multiple selections, the top voted editor feature in our tracker!

Please refer to the Official Announcement for details and examples of how it works.

While we wait for it to be natively implemented in the IDE, you can do this !

Existing Hotkeys

Windows: CTRL + CTRL (Hold) + ↑ / ↓

Mac: + (Hold) + ↑ / ↓ .

To place caret at the end of rows: move caret to top row, clone down to bottom, and click END .

Change Multi-caret Hotkey

To add a custom Keymap, CTRL + SHIFT + A , type keymap and click on the one with Settings as subtext. Search for Clone Caret Above and Clone Caret Below .

I mapped mine to ALT + SHIFT + ↑ / ↓ on Windows and + ↑ / ↓ on Mac.

Bonus

Try holding combinations of CTRL , SHIFT , and arrows for improved selection power.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM