tdwright / contabs

Simple yet flexible tables for console apps.
MIT License
54 stars 20 forks source link

Issue #15 - Allow for alignment of data in columns to be controlled #32

Closed Royhoey closed 6 years ago

Royhoey commented 6 years ago

Added options for alignment! The options are left (which is default), right and center.

You can set a HeaderAlignment property to align the headers of your table. You can set the ColumnAlignment property of a table to assign an alignment to every column in your table, or you can change the Alignment property on an individual column to overwrite that setting.

Let me know what you think!

(Also: this is my first PR ever so any feedback or tips are more than welcome!)

Royhoey commented 6 years ago

Can't seem to fix the tabs/spaces issue... @tdwright I have tried select all and then edit -> advanced -> tabify selected lines but that didn't work. What are your settings under Tools -> Options -> Text Editor -> Tabs?

image

tdwright commented 6 years ago

I've got it set up to "Insert Spaces" and have set it to use 4. Under the edit menu, you'd want to use "untabify", rather than "tabify".

Royhoey commented 6 years ago

@tdwright Ah ok, I've untabified the lines now. Does this look better? Anything else that needs to be done before the merge can be completed?