vscode settings - VS code How to place open braces on the same line? -
visual studio code puts braces on new line(c# style). functions this.
public string getstring() { string hi = "hello world"; return hi; }
i want put braces after function name. this:
public string getstring(){ string hi = "hello world"; return hi; }
i checked settings , did not find ways solve issue. glad if me.
for javascript , typescript, vscode supports following settings.
"typescript.format.placeopenbraceonnewlineforfunctions": boolean "typescript.format.placeopenbraceonnewlineforcontrolblocks": boolean "javascript.format.placeopenbraceonnewlineforfunctions": boolean "javascript.format.placeopenbraceonnewlineforcontrolblocks": boolean
reference: javascript in vs code
Comments
Post a Comment