c# - MonoDevelop: IDE does not auto-format braces -


i trying write c# code in monodevelop ubuntu linux, editor not format braces. used format them nicely, so:

void method() {     if (condition)     {         //...     } } 

then 1 time reopened monodevelop, editor started leaving left brace hanging:

void method() {     //cursor left here after pressing enter, no right brace 

after went edit > preferences > text editor > behavior > checked "insert matching brace", editor started appending } end of block. however, problem code formatted eclipse/java-style, don't want. see below:

void method() {     if (condition) {         //...     } } 

for reason, going edit > preferences > source code > code formatting > c# > setting policy "microsoft visual studio" doesn't this. "enable on fly code formatting" checked off, too. edit > format > document works though, don't know what's wrong.

edit > preferences > source code > code formatting ide settings used when creating new solutions/projects. should go solution settings(double click on solution in solutionpad) , change settings under "source code->code formatting->c# source code".

monodevelop supports per project(or solution if project has "inherit" policy set).


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

java - Could not locate OpenAL library -

Non Unique Username with ASP.Net Identity 2.0 -