Curly Brackets - coding protocols
Posted: Wed May 21, 2008 1:36 pm
I am using visual studio and the default for placing curly bracketts is on the line below the declartion. This feature is nice because when you hit the lower curly bracket on the block it autoformats the code.
Your spec's state to put the curly bracket on the same line as the declartion
private void somemethod (vars) {
...stuff...
...stuff...
}
VS Defaults
private void somemethod (vars)
{
...stuff...
...stuff...
}
Does anyone know how to change this?
Is this in the SLN file? If so can someone change it to the coding style you like?
If this is preserved in the .SUO file I suggest what the SVN manual states.
1) Make a SUO file the way you like things.
2) Change the name of the file name to Opendental.suo.master
3) Commit the master file
4) (optional) Block the committing of .suo files
5) We as user can pull the master file off change the name back to Opendental.suo then we should have your preference for coding style build in to our developing environment.
This would also may reduce the changes that occurr with a commit.
Your spec's state to put the curly bracket on the same line as the declartion
private void somemethod (vars) {
...stuff...
...stuff...
}
VS Defaults
private void somemethod (vars)
{
...stuff...
...stuff...
}
Does anyone know how to change this?
Is this in the SLN file? If so can someone change it to the coding style you like?
If this is preserved in the .SUO file I suggest what the SVN manual states.
1) Make a SUO file the way you like things.
2) Change the name of the file name to Opendental.suo.master
3) Commit the master file
4) (optional) Block the committing of .suo files
5) We as user can pull the master file off change the name back to Opendental.suo then we should have your preference for coding style build in to our developing environment.
This would also may reduce the changes that occurr with a commit.