# Auto-format Markdown tables

Date: 2021-08-21

Did you know you can auto-format Markdown tables with the simple shortcut Ctrl + Space while the cursor in inside the table?

|    Tables        | Are           | Cool  |
| -------------------- |:-------------:| ------------:|
| col 3 is      | right-aligned     | $1600 |
|  col 2 is      | centered      |   $12     |
| zebra stripes    | are neat      |        $1 |
1
2
3
4
5

becomes...

| Tables        |      Are      |  Cool |
| ------------- | :-----------: | ----: |
| col 3 is      | right-aligned | $1600 |
| col 2 is      |   centered    |   $12 |
| zebra stripes |   are neat    |    $1 |
1
2
3
4
5

Right, center and left column alignments will automatically applied to the text.

Markdown tables