Home Download Buy Blog Forum Support

Whitesmiths Indentation Style?

Re: Whitesmiths Indentation Style?

Postby mwb1100 on Fri Mar 08, 2013 11:33 pm

This is probably not the place for yet another brace placement war.

The fact is that some people or code will use a brace style that you dislike for whatever reason (they might just like it, or they might hate it but are forced to use it because of some requirement). Some people might even dislike the brace style that you prefer, even if as far as you can tell there's absolutely no defect in it.

Whitesmiths is common enough that ST should support it.
mwb1100
 
Posts: 14
Joined: Mon Jun 25, 2012 5:40 pm

Re: Whitesmiths Indentation Style?

Postby vanRijn on Sat Mar 09, 2013 4:28 am

So, people have said that it is possible to do this with a plugin, but I haven't seen anyone point to how exactly to do it. Can someone please give some guidance on how one would go about writing a plugin that formats code this way?
vanRijn
 
Posts: 9
Joined: Tue Feb 05, 2013 6:55 pm

Re: Whitesmiths Indentation Style?

Postby handycam on Sun Mar 10, 2013 12:15 am

robertcollier4 wrote:Using a whole extra line for an opening brace? I have never been able to understand why anyone would waste the space and not use One True Brace Style. If there is a reason, please enlighten me. The beginning of a block can always be located because the "for" / "while" / "if" / "else" keyword should be highlighted - so then what is the reason.

More lines for the same code means more scrolling and less methods shown at screen at one time --> takes longer to navigate around in your code.


I'm with you!
Mac OS 10.8.3
ST 3 (3023)
handycam
 
Posts: 252
Joined: Tue Jan 03, 2012 2:42 pm

Previous

Return to General Discussion

Who is online

Users browsing this forum: shancat and 11 guests