https://github.com/robbycbennett/vscodealignanything
Align assignments, comments, or anything else
https://github.com/robbycbennett/vscodealignanything
personal vscode-extension
Last synced: 8 months ago
JSON representation
Align assignments, comments, or anything else
- Host: GitHub
- URL: https://github.com/robbycbennett/vscodealignanything
- Owner: RobbyCBennett
- License: mit
- Created: 2024-09-28T23:06:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-17T22:48:21.000Z (9 months ago)
- Last Synced: 2025-09-18T00:31:27.948Z (9 months ago)
- Topics: personal, vscode-extension
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Align Anything
*Align assignments, comments, or anything else*
## Usage
1. Select some lines
2. Use a command starting with "Align Anything"
Then, the first match on each line is aligned to the right using spaces.
## Features
Ways to select text
- Select multiple lines in one selection
- Create multiple selections with alt and the mouse
- Select nothing and the entire file is aligned
Patterns to find and align
- Assignment operators (`=` surrounded by spaces)
- Comments for 48 different languages (with `//` and `/*` by default)
- Custom patterns
- Popup if no string is set
- Set a keybinding with `"args": "regular_expression_here"`
## Known Limitations
- It doesn't work if lines are indented differently with tabs.
- Tokens are not known. As a result, patterns found in strings will be aligned. Tokens that span across lines will not work well either. See https://github.com/microsoft/vscode/issues/177452.