Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting at new line when pressing enter in VS

I'm using VS 2015 and when I press enter after a code line when writing javascript I always start the next line at the beginning. I would like it to start at the "proper" place, for e.g.

    function newLine() {
        Starts here..//Works fine
    }
Starts here now..

EDIT: By "Should start here.." I mean one tab in from the braces, not two lines below :)

like image 226
MrProgram Avatar asked Dec 23 '15 08:12

MrProgram


1 Answers

Tools -> Options -> Text Editor -> -> Tabs -> Indenting To BLOCK.

like image 75
John Smith Avatar answered Oct 01 '22 19:10

John Smith