# Wanted: vertical alignment for VS Code

**URL:** <https://forum.crystal-lang.org/t/wanted-vertical-alignment-for-vs-code/1611>\
**Category:** Help & Support\
**Created:** [January 11, 2020, 2:09am UTC](https://forum.crystal-lang.org/t/wanted-vertical-alignment-for-vs-code/1611 "2020-01-11T02:09:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![C-Dev777](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@C-Dev777](https://forum.crystal-lang.org/u/C-Dev777)\
**Post date:** [January 11, 2020, 2:09am UTC](https://forum.crystal-lang.org/t/wanted-vertical-alignment-for-vs-code/1611/1 "2020-01-11T02:09:28Z")

</div>

I use Visual Studio Code for Crystal programming. It works wonderfully except for one problem: [the plugin I use](https://marketplace.visualstudio.com/items?itemName=faustinoaq.crystal-lang) doesn’t have a vertical alignment option.

Is there a vertical alignment plugin for VS Code that plays nice with Crystal? Or is there a better Crystal plugin that I should use instead?

I don’t know if this question belongs here… 🤔

---

<div class="post-metadata">

**Author:** ![straight-shoota](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/straight-shoota/32/36_2.png) [@straight-shoota](https://forum.crystal-lang.org/u/straight-shoota)\
**Post date:** [January 11, 2020, 2:56am UTC](https://forum.crystal-lang.org/t/wanted-vertical-alignment-for-vs-code/1611/2 "2020-01-11T02:56:16Z")

</div>

What do you mean with vertical alignment?

---

<div class="post-metadata">

**Author:** ![fxn](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/fxn/32/1128_2.png) [@fxn](https://forum.crystal-lang.org/u/fxn)\
**Post date:** [January 11, 2020, 7:35am UTC](https://forum.crystal-lang.org/t/wanted-vertical-alignment-for-vs-code/1611/3 "2020-01-11T07:35:38Z")

</div>

I use [Better Align](https://marketplace.visualstudio.com/items?itemName=wwm.better-align).

The Crystal formatter aligns vertically some things (like `=>` in hash literals), and others don’t (like assignments). Guess the best practice would be to run the formatter and accept the style.

---

<div class="post-metadata">

**Author:** ![straight-shoota](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/straight-shoota/32/36_2.png) [@straight-shoota](https://forum.crystal-lang.org/u/straight-shoota)\
**Post date:** [January 11, 2020, 11:17am UTC](https://forum.crystal-lang.org/t/wanted-vertical-alignment-for-vs-code/1611/4 "2020-01-11T11:17:32Z")

</div>

Yes, just follow the formatter is usually a good idea. Otherwise you can’t use it on your projects because it will always interfere with your custom formats.  
If you find an idea to improve the formatter, don’t hesitate to suggest an enhancement.

---

<div class="post-metadata">

**Author:** ![C-Dev777](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@C-Dev777](https://forum.crystal-lang.org/u/C-Dev777)\
**Post date:** [January 11, 2020, 4:37pm UTC](https://forum.crystal-lang.org/t/wanted-vertical-alignment-for-vs-code/1611/5 "2020-01-11T16:37:41Z")

</div>

Looks like I’ll run the formatter then. Thank you!
