Open onigetoc opened 8 years ago
Make sure your closeTags
preference is set correctly:
{
"closeTags": { "whenOpening": true, "whenClosing": true, "indentTags": [] },
}
If it is already correct, can you clarify which document mode you are using for HTML?
For the second part, AFAIK CodeMirror doesn't support replacing the other tag automatically yet, but there might be an extension for it.
Brackets do not have preference at all. (I use the french version)
@onigetoc You can set the preference yourself from debug -> Open preferences file
. Just add it before (or after) the others (on the right pane)
In the right panel brakets.json ? I just did it but it do not work.
My setting.
{ "fonts.fontSize": "14px", "fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace", "hirse.beautify.onSave": true, "themes.theme": "dark-theme", "acb-bootstrap-snippets.enabled": true, "linting.collapsed": true, "livedev.multibrowser": true, "useTabChar": false, "acb-jade-bootstrap-snippets.enabled": true, "closeTags": { "whenOpening": true, "whenClosing": true, "indentTags": [] } }
The defaylt preference is like that. `"closeTags": { // Ensemble de balises qui ne doivent pas se fermer automatiquement "dontCloseTags": [],
// Ensemble de balises qui, quand elles sont ouvertes, disposent d’une ligne vierge
"indentTags": [],
// Fermer quand l’utilisateur tape le caractère / de la balise de fermeture
"whenClosing": true,
// Fermer quand l’utilisateur tape le caractère > de la balise d’ouverture
"whenOpening": true`
Ok, it work for all tags except div ?
@onigetoc Sounds weird... have you tried launching Brackets without extensions? (Debug -> Reload Without Extensions). Empty dontCloseTags
should enable all tags to close.
I have the same problem too, i reloaded it without extensions, i write
When you begin your a tag
<div
and when you close it<div>
it should give you instantly this:<div></div>
Closing the tag.Another thing. If i change my div to span, it should be smart enough to change the closing tag with span. Google elements inspector do it.
Even ace editor do it naturally with autocompletion. https://ace.c9.io/demo/autocompletion.html