Auto New Line When Typing {
-
I want to make auto complete settings like this:
.class-css {
automatically add new line before closing tag
so I can write here without try to enter or tab again.
}or
function () {
automatically push “}” to bottom with one auto indent.
}Thanks for your suggestions.
-
I use PhraseExpress (a Text Expander) for such and even more effortful auto complete settings.
This works very well.
For the free test version see here:
http://www.phraseexpress.com/freeware.htm#freewarepeter
-
For example: This PhraseExpress phrase
.class-css{#asc 123}{#asc 13}{#TAB}{#asc 13}{#asc 125}{#left -count 2}
causes this output:
.class-css{
–> _
}_ = cursor position
–> = TAB (The Forumsoftware cannot represent this)peter
-
You can simply enable auto completion.
Settings > Preferences > Auto-completion
and make sure{
is checkmarked. -
@dail I have tried this step, but this setting wouldn’t make closing “}” to bottom as desired.
I’d like to make closing “}” to bottom automatically like I mentioned above:.class-css {
|
}so:
.class-css {
I begin write here;
}or
function() {
|
}So I’d wrote:
function() {
if(blablabla)
}Any suggestions as simply as notepad++?
-
If I type
.class-css {|
It automatically becomes
.class-css {|}
And then I press enter:
.class-css { | }
Is this not what you are wanting?
-
@dail almost!
But, I’ve found that setting when we type “{”, it’s automatically create closing “}” with one tab indent or without we press ENTER.
Unfortunately, I forgot that settings.