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

Have Auto Close / Rename Tag for html section #565

Open
octref opened this issue Nov 29, 2017 · 18 comments
Open

Have Auto Close / Rename Tag for html section #565

octref opened this issue Nov 29, 2017 · 18 comments

Comments

@octref
Copy link
Member

octref commented Nov 29, 2017

https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag
https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag

@w1ndy
Copy link

w1ndy commented Dec 6, 2017

HTML tags are auto closed in HTML files but not in Vue files.

@omidb
Copy link

omidb commented Mar 14, 2019

Any updates on this?

@octref
Copy link
Member Author

octref commented Nov 26, 2019

I'll make it work similarly to the HTML support: microsoft/vscode#47069 (comment)

@thebrownfox
Copy link

Any news on this?

@chances
Copy link

chances commented Mar 10, 2020

@octref Is there a WIP branch to handle autoClosingTags or can one of us go ahead and contribute a PR?

@ylc395
Copy link
Contributor

ylc395 commented Apr 22, 2020

will this feature be available soon?

@Alexn117
Copy link

I'm new to Vue and decided to use the recommended Vetur extension with VS Code. It started to feel strange that my tags were not auto-closing, which is the standard behavior in .html files. Will this feature come soon?

@octref
Copy link
Member Author

octref commented Sep 25, 2020

If you are interested in making this happen, PR / bug bounty / sponsorship are all welcome.

@icleolion
Copy link

In the interim you can use the packages mentioned in the OP.
For those who were using Auto Rename Tag, but stopped because it was constantly crashing VS Code's extension host, the extension was overhauled back in April and is now safe to use again.

@sethidden
Copy link
Contributor

sethidden commented Sep 27, 2020

@vegerot
Copy link

vegerot commented Nov 24, 2020

With editor.renameOnType, will this plugin be able to utilize a similar mechanism for renaming tags?

@thebrownfox
Copy link

@vegerot the editor.renameOnType works in SFCs so no need to use additional plugin for this feature

@thebrownfox
Copy link

I had apparently the plugin installed somehow and it was why it worked for me. The editor.renameOnType got deprecated and is now under editor.linkedEditing.

@Keavon
Copy link

Keavon commented Feb 17, 2021

Any updates on this?

@Lucien950
Copy link

Can vetur at least stop controlling the autorename behaviour so that we can enable

"editor.linkedEditing": true

@CMQNordic
Copy link

CMQNordic commented Jan 17, 2022

"editor.linkedEditing": true forces auto rename only in html files. Not woking in vue files.
Can this be fixed?

@daolanfler
Copy link

for renaming, F2 works well. ( I'm using volar )

@yoyo930021 yoyo930021 removed this from the v0.36.0 milestone Feb 20, 2023
@CodeCubeNeo
Copy link

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests