Post by djsudeepdey » Fri Jan 17, 2025 8:12 pm

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?

Newbie

Posts

Joined
Tue May 03, 2016 10:23 pm

Post by Joel742Bushong » Sat Jan 18, 2025 7:44 pm

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.


Posts

Joined
Sat Jan 18, 2025 7:42 pm
Who is online

Users browsing this forum: No registered users and 6 guests