I am using BeyondCompare to compare files and am very happy with it. However I'd like to be comparing and cross-editing two .properties files as well. The specific is obvious - I do not care about the order of name/value pairs but I care about duplications etc. Does anyone knows (or also needs) such an application?
There is a trick to sort the properties by key name when saving.
Or sort both files before comparing them.
I found a way that works pretty good for me.
As far as I can tell, the only problem with this approach is that when you save any change made using Beyond Compare, the properties file get all messed up; so you need to select the File format "<default>" before save or make the changes outside of Beyond Compare.
Based on the message #2 and the link it contains. I'm using BC v3.3.13
The trick is to create a special file format:
Tools / File Formats...
new button) or ...PropertiesGeneral tab set the mask: *.propertiesConversion tab set SortingGramar tab
New buttonEqual sign to the endDelimited=) in the Text from: fieldStop at end of lineNew buttonCommentsDelimited#) in the Text from: fieldStop at end of lineSave button or press Alt-S
rules tool bar icon (the guy with a hat) (is shown inside a blue oval in the previous image)Importance tab
4. Press the `Ok` button
Hope it helps someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With