Share your thoughts in our discussion forum and submit bug reports to the issue tracker. DataGrip is based on IntelliJ Platform which brings: Text editor with multiple cursors and syntax-aware selection Version control systems integration: Git, Subversion, etc. 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.
DATAGRIP MULTIPLE CURSORS CODE
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. Note that on some systems you also have to use Shift with the shortcuts mentioned.
DATAGRIP MULTIPLE CURSORS FOR MAC OS
To switch off the multiple cursors and get back to single one, please press ⎋/Escape. Set multiple cursors in the editor area: Alt + Mouse Click (Option + Mouse Click for Mac OS X). Choose with the arrow keys and press Enter. If there is just 1 query, it executes straight away, if there are multiple queries it will show a context menu with the first option to execute the query where your cursor is, and the second option to execute all queries.
![datagrip multiple cursors datagrip multiple cursors](https://qph.fs.quoracdn.net/main-thumb-3760783-100-SWge2SxxORHJ8kndM3D4dX3VVSo4L9Fd.jpeg)
Please go to Settings -> Keymap -> Editor Actions and set up the shortcuts for Clone Caret Above and Clone Caret Below actions: On Mac I then (with my cursor on the first line) I press Command + Enter. 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.