Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

sorting code

$
0
0

I have written a little java program for sorting multi-line blocks of

code.  You give at a delimiter to separate the blocks.  It then trims

the blocks and sorts.

 

You can use it for sorting enums, initialisation lists, case

statements, static init code, Swing component initialisation....  It

runs standalone at present.  You must copy the stuff to be sorted to a

file, and copy it back.  For someone who understood how  plug-ins

work, it should be possible to just highlight some text and sort.  You

would need a way to configure the delimiter.

 

The source code is posted at

http://mindprod.com/products1.html#SORTCODE

--

Roedy Green Canadian Mind Products http://mindprod.com

Every method you use to prevent or find bugs leaves a residue of subtler

bugs against which those methods are ineffectual.

~ Bruce Beizer  Pesticide Paradox

 


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>