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-completionand 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login