Sublime Forum

Turn off auto-completion of semicolon in CSS

#1

I have just installed Sublime Text to see if it’s better than Atom because the plugins for the programming language Rust are not cutting it for me in Atom.

Sublime Text looks okay to me but I am not convinced yet to purchase it for €80. Maybe if I can configure it the right way and find a sick-ass theme.

One of the first things I want changed is the following, when I type:

.class {
    example:
}

in CSS. Sublime Texts does the following:

.class {
    example: <MY_CURSOR> ;
}

What is the logic behind putting the semicolon there automatically? Now I have to press one extra key (the right-arrow-key) to be able to press enter to continue on the next line…

Anyway I want to disable this autocompletion of semicolons in CSS, how would I do that? Or would it even be possible to insert the semi-colon automatically when I press enter before going to the next line?

0 Likes

#2

There’s not a setting that can disable that, so to do it you’d need to modify the plugin in the CSS package to not include the ; in the completion snippets that it offers.

Note however that Control+Enter will insert a new blank line below the current line, then move there and indent the cursor (or if you will, it replicates what happens if you move part the semicolon and press enter).

0 Likes

#3

Why you wan’t have semicolon?

0 Likes