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

Emmet doesn't works with multicursors #22337

Closed
jmpp opened this issue Mar 9, 2017 · 10 comments
Closed

Emmet doesn't works with multicursors #22337

jmpp opened this issue Mar 9, 2017 · 10 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) emmet Emmet related issues

Comments

@jmpp
Copy link

jmpp commented Mar 9, 2017

  • VSCode Version: 1.10.1
  • OS Version: Windows Seven Professionnal

Steps to Reproduce:

  1. Just open any HTML file.
  2. Create multiple cursors and try to use a Emmet snippet.
  3. Run "Expand"

Snippet won't expand on multicursors :'(

Bug example

@ramya-rao-a
Copy link
Contributor

Tracked in #9571

@ramya-rao-a ramya-rao-a added *duplicate Issue identified as a duplicate of another issue(s) emmet Emmet related issues labels Mar 10, 2017
@ramya-rao-a
Copy link
Contributor

@jmpp
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)

@sant123
Copy link

sant123 commented Jun 12, 2017

Hi @jmpp, it works thank you! However, ¿is this going to be implemented by default in a future release?

@jmpp
Copy link
Author

jmpp commented Jun 12, 2017

@sant123 Dunno. Maybe you should ask @ramya-rao-a ;-)

@ramya-rao-a
Copy link
Contributor

Yes. Best case scenario is

  • We set emmet.useNewEmmet to true by default in 1.14. Users can fallback to the old model by setting this to false
  • We remove the setting altogether and only have the new model in 1.15

@sant123
Copy link

sant123 commented Jun 13, 2017

My mistake @jmpp 😂 😂 😂
Thank you @ramya-rao-a

@simgooder
Copy link

@ramya-rao-a When I enable this flag, tab-completions cease to work in stylesheets.

@ramya-rao-a
Copy link
Contributor

@simgooder can you give an example?

@simgooder
Copy link

To use tab-completions in HTML with multiple-cursors, I turned this setting to true. When I move into a stylesheet (scss) and attempt to tab complete display: inline-block; using the shorthand dib + [tab], it just tabs - no completion.

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Jul 8, 2017

In the new emmet model:

  • tab is no longer bound to emmet expansion.
  • you will see emmet expansion in the suggestion list

General notes on suggestion list:

  • pressing tab when suggestion list is present, chooses the first item in the suggestion list
  • If you have editor.quickSuggestions turned off, then the suggestions won't show up as you type. You can still trigger the suggestions by Ctrl+Space

I am able to emmet to work in scss file in multi cursor mode using both the suggestion list and via the emmet expansion command

multi

@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