A Visual Studio Code extension for aligning the inline trailing comments after code.
This extension aligns inline comments to the rightmost position. It only aligns inline comments placed after the code. Inline comments standing alone on a line will not be aligned. The space between the end of the code and the inline comment is filled/replaced with spaces. Tabs used from the beginning of the line to the end of the code remain untouched.
In editor, right-click mouse on supported file type to open Context Menu and then select Align Inline Comments command from modification group or open Command Palette (Ctrl+Shift+P) a then type Align Inline Comments.
- javascript
- powershell
- typescript
None
Manual install (Requirements: Node.js):
- Download packaged extension .vsix file from Releases.
- Make sure you have Node.js® installed.
- Open Node.js command prompt and install a command-line tool for packaging, publishing and managing VS Code extensions:
npm install -g @vscode/vsce
- To install the extension run:
code --install-extension align-inline-comments-extension-x.x.x.vsix
For more information see CHANGELOG file.
Licensed under the MIT License.
https://github.com/chrobaktruhlik/align-inline-comments-vscode-extension