Questions tagged [multiple-cursor]

When there are two or more simultaneous cursors, they are called multiple cursors. They allow you to type the same text at multiple places at the same time. Use this tag when multiple cursors are important to the question's topic.

18 questions
198
votes
8 answers

How do I get a cursor on every line in VS Code?

I'm trying to use the multi-cursor functionality of Visual Studio Code on a large(ish) file. The file is too large to select every line individually with ctrl alt up or ctrl alt down. In Sublime Text, I would select everything and press ctrl shift…
feihtthief
  • 6,403
  • 6
  • 30
  • 29
27
votes
4 answers

IdeaVim, multi cursor usage

I'm trying to trigger (to use) the IdeaVim multi cursor plugin: https://github.com/JetBrains/ideavim#emulated-vim-plugins -> multiple-cursors In the github docs we have commands: , , , g to trigger/use this plugin, but I'm not…
10
votes
1 answer

Fastest way to edit multiple lines of code at the same time

What is the best way to do the same action across multiple lines of code in the RStudio source editor? Example 1 Let's say that I copy a list from a text file and paste it into R (like the list below). Then, I want to add quotation marks around each…
AndrewGB
  • 16,126
  • 5
  • 18
  • 49
8
votes
1 answer

Block selection or multiple cursors in Texstudio?

The website of Texstudio advertises block selection or multiple cursor functionality, but I could not figure out which key combination to use for this feature reading their horribly cryptic user-manual. I am familiar with how text selection with…
Nanashi No Gombe
  • 510
  • 1
  • 6
  • 19
8
votes
1 answer

VSCode Vim disabling multiple cursors

I have looked everywhere and I am still unable to switch off this 'feature'! I've been using vi and, later, vim, since the 80's and I have never had need of multiple cursors, nor can I see a use for them. :s/search/replace/ does everything I…
pwmusic
  • 4,739
  • 4
  • 23
  • 14
6
votes
2 answers

Disable multiple selection in Android Studio?

I was coding something and suddenly android studio started placing cursors on each and every selected line. I dont know if it is a feature that was fired because of some shortcuts that I am not aware of. This is the gif screencast. How can I…
user3348051
6
votes
1 answer

Multiple-cursors in Emacs does not modify all the cursors

I have installed the multiple-cursors package but, I cannot manage to work properly. Only one cursor can be modified, the rest of the cursors do nothing. I have configured my .emacs file for the multi-cursors package as is shown below: (require…
Marco
  • 63
  • 4
6
votes
1 answer

Multiple cursors in Android Studio automatically at every text that matches?

I have been using multiple cursors with ALT + SHIFT. Sometimes I need like 20 cursors and I want them at the start of the same portion of text. This is tedious to do every time. Is there a shortcut for this? Like imagine there are 20 instance of the…
dfasdflskladf
  • 101
  • 1
  • 6
6
votes
2 answers

create multicursor in Atom

I use Atom on Ubuntu 17.10 with wayland window manager. I can create multiple cursors with CTRL+Mousclick or with CTRL+d to select the next same string. But how can I for example mark some lines and create a cursor at the start of each line? Also…
rubo77
  • 19,527
  • 31
  • 134
  • 226
3
votes
2 answers

VSCode Multiple Cursor Cut/Paste Behavior Changed

I am trying to copy/paste several lines of code, but it appears that the behavior for this has changed and I'm not sure how to correct this. When I select multiple words (cursor on each word). Copy. Place the same number of cursors somewhere else.…
2
votes
1 answer

How to group or display paragraphs with same tag with Sublime Text?

I have a text like this in Sublime Text (usually a very huge text file): #tag3 Some notes here about this and that. #tag1 #tag2 Hello world, here is some text #tag4 Blah Blah #tag2 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do…
Basj
  • 41,386
  • 99
  • 383
  • 673
1
vote
2 answers

Postgresql: Get content of cursors returned by function

A psql-function (sp_some_function) returns 2 cursors: create or replace function sp_some_function() RETURNS SETOF REFCURSOR as $BODY$ declare c_one refcursor := 'one' ; c_two refcursor …
Thomas_SO
  • 1,883
  • 2
  • 10
  • 20
1
vote
1 answer

Postgresql: how to get names of cursors returned by function?

I need to test a psql-function (sp_create_refcursors), which returns 3 cursors. Specifically, I need to see what data each of the 3 cursors "contains". The following script contains the boilerplate-code to perform the test: DO $$ …
Thomas_SO
  • 1,883
  • 2
  • 10
  • 20
1
vote
2 answers

Disable auto-pair when using multiple cursors in vim

I am using the vim plugins vim-multiple-cursors and auto-pairs. If I am editing a block of text for example: one two three four If I highlight the block with the command vip I " this will create two parenthesis in the front because…
code kid
  • 374
  • 1
  • 6
  • 22
0
votes
0 answers

How to exit block selection mode in Texstudio via keyboard?

Referring to the Texstudio user manual section 2.7.1 Manipulating tables there is the shortcut Ctrl+Alt+Shift to enter block selection mode. Is there a way to exit that block selection mode (i.e. go back to only one cursor), using only the…
x51mon
  • 1
  • 2
1
2