You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Add support for autoclosing tags to new preferences feature #6844
Allow me to disable the autoclosing of a tag. I find myself adding HTML around text quite a bit, so I'll want to bold something. I'll go in front of foo, type in the strong tag, and since Brackets auto closes it, I have to select it, cut it, and paste it. I'm actually faster if I can just type it myself where I want it.
I agree, this is a great feature, and I'd love to see this extension's functionality in Brackets itself. Although the norm is always auto-closing, I find that behavior annoying, even on new projects. To me, delaying auto-closing even on new projects is more natural and makes coding easier. Were it not for this extension, I'd still be hunting a good web editor. :)
Thanks for the mention of my extension. I think the extension may help @cfjedimaster with the problem he describes. It just depends on his personal preference.
It appears that there is a plan to implement something like my extension in the core as a preference. But I don't know if the plan is to outright disable it or to disable the part that the extension does which is "whenOpening".
@talmand In the PR you can see that you can set your own preferences - you can enable/disable whenOpening as well as whenClosing (and also indentTags, but I don't know what that is).
@TomMalbran I tested it out yesterday, this is exactly what I need ;) Praise the new preferences system!
@SAplayer In indent tags you can pass a list of html tags so that after pressing > it boths autocloses the tag, place them in 3 separate lines, indents the middle one and places the cursor there. So if "div" was in the list <div would become:
<div>
|
</div>
I also really wanted to be able to configure this.
@SAplayerhttps://github.com/SAPlayer In indent tags you can pass a
list of html tags so that after pressing > it boths autocloses the tag,
place them in 3 separate lines, indents the middle one and places the
cursor there. So if "div" was in the list <div would become:
|
I also really wanted to be able to configure this.
Reply to this email directly or view it on GitHubhttps://github.com//issues/6844#issuecomment-35423371
.
Activity
marcelgerber commentedon Feb 12, 2014
This would be really cool 👍
le717 commentedon Feb 12, 2014
There's an
appextension for that.https://github.com/talmand/Brackets-Disable-AutoClose-Tags
I agree, this is a great feature, and I'd love to see this extension's functionality in Brackets itself. Although the norm is always auto-closing, I find that behavior annoying, even on new projects. To me, delaying auto-closing even on new projects is more natural and makes coding easier. Were it not for this extension, I'd still be hunting a good web editor. :)
le717 commentedon Feb 12, 2014
Oops. This issue is about disabling the auto-closing, not delaying it. My bad.
talmand commentedon Feb 18, 2014
Thanks for the mention of my extension. I think the extension may help @cfjedimaster with the problem he describes. It just depends on his personal preference.
It appears that there is a plan to implement something like my extension in the core as a preference. But I don't know if the plan is to outright disable it or to disable the part that the extension does which is "whenOpening".
TomMalbran commentedon Feb 18, 2014
I submitted a PR yesterday that would allow us to change any of the settings in Auto Close Tags: #6888 using the new Preferences System only.
marcelgerber commentedon Feb 18, 2014
@talmand In the PR you can see that you can set your own preferences - you can enable/disable whenOpening as well as whenClosing (and also indentTags, but I don't know what that is).
@TomMalbran I tested it out yesterday, this is exactly what I need ;) Praise the new preferences system!
TomMalbran commentedon Feb 18, 2014
@SAplayer In indent tags you can pass a list of html tags so that after pressing
>it boths autocloses the tag, place them in 3 separate lines, indents the middle one and places the cursor there. So if "div" was in the list<divwould become:I also really wanted to be able to configure this.
cfjedimaster commentedon Feb 18, 2014
My dream really is to kill all helping. I don't want closed tags or
indenting. :)
On Tue, Feb 18, 2014 at 1:32 PM, Tomás Malbrán notifications@github.comwrote:
Raymond Camden, Web Developer for Adobe
Email : raymondcamden@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster
marcelgerber commentedon Feb 18, 2014
You can. Just use
{ "closeTags": { "whenOpening": false, "whenClosing": false, "indentTags": [] }, "smartIndent": false }(I think)
cfjedimaster commentedon Feb 18, 2014
But not now - right? Not in the current Sprint I mean.
On Tue, Feb 18, 2014 at 1:45 PM, Marcel Gerber notifications@github.comwrote:
Raymond Camden, Web Developer for Adobe
Email : raymondcamden@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster
marcelgerber commentedon Feb 18, 2014
As soon as #6888 is merged.
cfjedimaster commentedon Feb 18, 2014
K. I typically use sprint releases only as I've got Brackets as my primary
IDE - so updating daily isn't something I want to do. ;)
On Tue, Feb 18, 2014 at 1:51 PM, Marcel Gerber notifications@github.comwrote:
Raymond Camden, Web Developer for Adobe
Email : raymondcamden@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster
le717 commentedon Feb 18, 2014
@talmand I just tested the new options, I can recreate your extension's actions using
{ "closeTags": { "whenOpening": false, "whenClosing": true, "indentTags": [] }, }Good work on the options, @TomMalbran!
dangoor commentedon Feb 19, 2014
Low priority to @TomMalbran who has a fix in progress
dangoor commentedon Feb 20, 2014
This has now landed in master, so it will be in Brackets 37.
cfjedimaster commentedon Feb 20, 2014
Thank you!
On Thu, Feb 20, 2014 at 10:49 AM, Kevin Dangoor notifications@github.comwrote:
Raymond Camden, Web Developer for Adobe
Email : raymondcamden@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster
laramjo commentedon Apr 4, 2015
Help me please
#10828
peterflynn commentedon Apr 7, 2015
@laramjo Please don't post comments to unrelated discussion threads