Page 1 of 1

VS Code Configuration Support

Posted: Fri Jan 17, 2025 8:12 pm
by djsudeepdey
How language files have variables auto aligned equally?

Is there any extension in VS Code that does that?
Are there any specific configurations (for VSCode) that are required for project?

Re: VS Code Configuration Support

Posted: Sat Jan 18, 2025 7:44 pm
by Joel742Bushong
Yes, there is an extension for Visual Studio Code called Better Align that allows you to auto-align choiceadvantages variables and other code elements. You can install it from the Visual Studio Marketplace.

As for specific configurations, you can customize the alignment settings in your settings.json file. Here's an example configuration:

json
"betterAlign.surroundSpace": {
"colon": [0, 1],
"assignment": [1, 1],
"arrow": [1, 1],
"comment": 2
}
This configuration will align code around colons, assignments, arrows, and comments with the specified spacing.