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

[tab completion] multi cursor behaviour different to emmet #9764

Closed
aeschli opened this issue Jul 26, 2016 · 5 comments
Closed

[tab completion] multi cursor behaviour different to emmet #9764

aeschli opened this issue Jul 26, 2016 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug snippets verified Verification succeeded

Comments

@aeschli
Copy link
Contributor

aeschli commented Jul 26, 2016

Testing #9698:

  • enable tab completion: "editor.tabCompletion": true
  • create a html snippet
     "Div": {
        "prefix": "div",
        "body": [
            "<div>",
            "    ${}",
            "</div>"
        ],
        "description": "New div"
    }
  • in a html file have a multiple lines with content 'div'. Set multiple cursors after each div. Press tab.
    👉 primary div is expanded
  • do the same with multiple lines of span, press tab
    👉 tab character is added at each of the cursors

Not sure if the emmet behaviour is intentional.
It would be cool if the expansion happens on every cursor.

@jrieken
Copy link
Member

jrieken commented Jul 26, 2016

I like

@jrieken jrieken added the bug Issue identified by VS Code Team member as probable bug label Jul 26, 2016
@jrieken jrieken added this to the July 2016 milestone Jul 26, 2016
@jrieken
Copy link
Member

jrieken commented Jul 26, 2016

@aeschli It seems we only support (and that already today) snippets and multi cursor when no placeholders are defined. I see how that makes sense, but the 'final selection'-placeholder should always be supported. Still, moving to August since became more work than I though

@jrieken
Copy link
Member

jrieken commented Sep 12, 2016

Reopening as a 'fix' for #11742

@sandy081 sandy081 added the verified Verification succeeded label Sep 30, 2016
@gheoan
Copy link

gheoan commented Nov 7, 2016

vscode's behavior is still different to emmet.

emmet:

  • In a HTML file have multiple lines with content 'div'. Set multiple cursors after each 'div'. Press tab.
    => All 'div' are expanded.

vscode:

  • "editor.tabCompletion": false.
  • "emmet.triggerExpansionOnTab": true
  • No html snipped with div prefix.
  • In a HTML file have multiple lines with content 'div'. Set multiple cursors after each 'div'. Press tab.
    => Tab character is added at each of the cursors.

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Feb 11, 2017

@gheoan The emmet related behavior is tracked in #9571

@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
bug Issue identified by VS Code Team member as probable bug snippets verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants