Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's easy to use "Multiple cursor" ,but autocomplete not working correctly & how to remove one of the cursor ? #25964

Closed
manglobe opened this issue May 5, 2017 · 6 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) emmet Emmet related issues

Comments

@manglobe
Copy link

manglobe commented May 5, 2017

If I want to write same code in several place , I will use alt+click to generate multiple cursor . But when I press 'tab' to use autocomplete , it can't works.

And if I generate a cursor in a wrong place,I don't know how to remove it , I can only come back again .

I read the Official documents https://code.visualstudio.com/docs/editor/codebasics#_multiple-selections-multicursor , but I just find how to make multiple cursor.

@alexdima
Copy link
Member

ctrl+u will undo the addition of a cursor. It is a much more general command than that, ctrl+u is cursor undo, meaning it will bring the cursors in the previous state they had. The cursor undo/redo stack is cleared when editing the buffer.

For the suggestion question, I refer you to @jrieken

@alexdima alexdima added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label May 19, 2017
@alexdima alexdima assigned jrieken and unassigned alexdima May 19, 2017
@jrieken jrieken added the info-needed Issue requires more information from poster label May 22, 2017
@jrieken
Copy link
Member

jrieken commented May 22, 2017

. But when I press 'tab' to use autocomplete , it can't works.

@manglobe Please clarify the above statement. Please add detailed steps, the actual and expected behaviour

@manglobe
Copy link
Author

@jrieken For Example I want write several 'a' tag in html :

  1. I used alt+click to generate multiple cursor ;
  2. Then I pressed ‘a’ , every cursor writed an 'a' in the document , and so far so good ;
  3. I pressed 'tab' , I wished every cursor will write ‘’ , but only the first one do it .

1

Another scene:

  1. I used alt+click to generate multiple cursor ,then pressed 'a' ;
  2. I removed all the multiple cursor ,and then generate them again ;
    3 I pressed 'tab' , this time no one works .

2

Mybe my english was too awful . So I uploaded two gifs . (:3 」∠)

@jrieken jrieken added emmet Emmet related issues and removed info-needed Issue requires more information from poster *question Issue represents a question, should be posted to StackOverflow (VS Code) labels May 23, 2017
@jrieken jrieken assigned ramya-rao-a and unassigned jrieken May 23, 2017
@jrieken
Copy link
Member

jrieken commented May 23, 2017

This is emmet which doesn't support multiple cursors, yet

@ramya-rao-a
Copy link
Contributor

Closing as duplicate of #9571

@manglobe We will have multi cursor emmet expansions in the upcoming release.
Please follow #9571 for when it will be available in the Insiders build

@ramya-rao-a ramya-rao-a added the *duplicate Issue identified as a duplicate of another issue(s) label May 23, 2017
@ramya-rao-a
Copy link
Contributor

@manglobe

Set emmet.useNewEmmet to true (in the latest Insiders dated 6/1 or above and eventually in the stable release of 1.13 and higher) to get emmet abbreviation expansions in the suggestion list.
This will work in multi cursor too

For details on this setting read #1952 (comment)

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) emmet Emmet related issues
Projects
None yet
Development

No branches or pull requests

4 participants