Webstorm multiple cursors3/8/2023 ![]() ![]() I think it's affordable and that any usage of StyledText that takes care of honouring the StyledText.getSelectionRanges() *plural* method should work well with multi-carets/multi-selection, since from contumer perspective, there is no big difference between a block selection and a multi-selection when using this method. * Change case or apply some bulk operation such as formatting. * Delete/insert text at multiple location (block selection already does that) Once the multi-carets/multi-selections are enabled, they're used to It looks like the Block Selection mainly reads the 1st line to apply the selection modification to all lines. Where | are carets, then "foo" and "lol" are selected. Will select the result applied to each selection so if I have Modifyig (expanding/shrinking) multi-selection happens in the context of the line, so operation like * Does *NOT* really care about mouse based multi-selection which seems to be a less important case. The is basically a shortcut "also select next/all instance of currently selected word". * Or user builds a multi-selection of the same word. * Either starts from one or several block selection to select successive lines at the same column There are 2 main ways to use multi-carets/selection I've seen a demo about a user of multi-carets/multi-selections in VSCode yesterday and learnt about some realistic use-cases and got some feedback about potential implementation: Share your thoughts in our discussion forum and submit bug reports to the issue tracker.VSCode demo with MirrorCursorOnMatchingTag on HTML So we would really appreciate your feedback about it. Multiple cursors and selection feature as cool as it is to use now, it still has a long way to go: its implementation remains to be refined, and some limitations need to be dealt with. You can also easily change any repeating code fragment with Select All Occurrences (⌃⌘G/Ctrl+Shift+Alt+J) and Select/Unselect Next Occurrence (⌃G and ⇧⌃G/Alt+J and Shift+Alt+J ) actions: We’ve added an opportunity to use autocompletion and live templates with multiple selection as well. The context is determined from primary cursor’s location, resulting changes are applied to all cursors: Use code completion in multiple places at once Or you can go back to the beginning of lines with Move Caret to Line Start (⌘←/Home) and capitalise the first letters with Right with Selection (⇧→/Shift+Right) and Toggle Case (⌘⇧U/Ctrl+Shift+U) actions: For example, select the first words with Move Caret to Next Word with Selection (⌥⇧→/Ctrl+Shift+Right) action and move them to the end of lines with Cut (⌘X/Ctrl+X), Move Caret to Line End (⌘→/End) and Paste (⌘V/Ctrl+V) actions: Now, when multiple cursors are set, you can make some changes. To switch off the multiple cursors and get back to single one, please press ⎋/Escape. Please go to Settings -> Keymap -> Editor Actions and set up the shortcuts for Clone Caret Above and Clone Caret Below actions: Using Alt with the mouse click you can set the cursors in all places you need (please note that you may always change the shortcut in Settings -> Keymap -> Editor Actions -> Add or Remove Caret): It was the top voted editor feature in our tracker and we hope you will like it. Let me go through this short demo in more detail and show you all the tricks. If you, as me, often dream of being in several places at once you will like this new feature coming to RubyMine from IntelliJ platform side! Please welcome multiple cursors and selection that you can already try in the last EAP version: Use code completion in multiple places at once. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |