简体   繁体   中英

Grow and shrink selection keybindings in IntelliJ Cursive

Which keybindings should I configure in IntelliJ Cursive to get the "expand" and "shrink" selection behaviour documented in the ParEdit user guide ?

The user guide mentions Alt+Up and Alt+Down , but as someone new to structural editing, I'm struggling to find the right keybinding.

It depends which platform you're on. Generally you don't have to configure these actions since they're built in to IntelliJ, they're not Cursive specific. Alt-Up and Alt-Down are for the Mac OSX 10.5+ keymap, recommended if you're on a Mac. In the Default keymap, which is what you'll get if you're on Windows or Linux it's Ctrl-W and Shift-Ctrl-W.

These actions are called "Extend/Shrink Selection" on v14, and on earlier versions (probably for historical reasons) they're "Select/Unselect Word at Caret". They can be found by searching in the Keymaps panel.

If you do want to change any keybindings, make sure you do them in the top-level Prefs -> Keymap settings, NOT in the Prefs -> Keymap -> Clojure Keybindings window. Those are not meant to be edited. On a Mac for example, the default cursive keybinding for Wrap [] clobbered the basic backward navigation keybinding.

This issue cleared up the confusion for me.

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