maxbec / openHAB-Alignment-Tool

This extension adds support for formatting and indenting openHAB files. At the moment only the item-files are supported.
https://marketplace.visualstudio.com/items?itemName=max-beckenbauer.oh-alignment-tool
Eclipse Public License 2.0
21 stars 4 forks source link

Include channel formatting #11

Closed soleetions closed 4 years ago

soleetions commented 4 years ago

I would like to see that the channel part of an item ( the part between the {} at the end of the line) uses a standard formatting.

Currently I have item files that have some different formatting. Making this uniform by the allignment tool would be great!

Example:

String Item1 "Item 1" (group) { channel="channel1" } String Item2 "Item 2" (group) {channel="channel2" }

Hope you see the difference: at Item2 the is a space missing after the bracket ({) I would like that the formatting can fix that too so every line will be the same.

maxbec commented 4 years ago

Fixed in 8cc5215944156de742304c7b786c9ae14b468775