Closed bzy-debug closed 1 year ago
You should be able to change web-mode-auto-close-style
, setting it to 1 or 3, or disable web-mode-enable-auto-closing
for the files that need it. There's a number of approaches to do that, so it's up to your exact setup and taste. For instance, set these custom options with M-: (setq-local web-mode-auto-close-style 1)
, or custom keybinding, or some hook, etc.
Thanks for your reply. I’m currently switch to vscode for web development. This is not a issue for me.
Thanks for creating this wonderful package, it really helps a lot!
I'm currently using web-mode with this config:
The behaviour of auto closing on
>
makes it a bit of annoying when working with emmet. In emmet,>
can be used to create nested tags, and the auto closing behaviour of>
makes this feature unusable. For example, under this circumstance (|
is the position of cursor):To create two nesting
div
andp
elements using emmet, I need to typediv>p
. However, when I type>
, it triggers the auto close of thebody
element, resulting something like this:Is it possible not to let
>
trigger auto closebody
when thebody
is already closed?Thanks again for your greate package!