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?
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.
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.
Who is online
Users browsing this forum: No registered users and 6 guests