A VS Code extension that allows you to format text directly in the editor.
Install
-
Open Visual Studio Code.
-
Go to Extensions (
Ctrl+Shift+X). -
Search for Your Extension Name.
-
Click Install.
Usage
The extension is located in the status bar, you must click on it to use the options in the drop-down menu.
Functions
Change to Uppercase
Convert the selected text to uppercase.
Change to Lowercase
Convert the selected text to lowercase.
Remove Spaces
Remove whitespace from the beginning and end of the selected text.
Sort Alphabetically
Sort the selected lines alphabetically based on their first character.
Reverse Characters
Reverse the order of characters in the selected text.
Copy to Clipboard
Copy the selected text to the system clipboard.
Regex Match
Test selected text against a regular expression and display the result in the console.
Show Clipboard
Display the current clipboard content.
Add Bullet Point
Insert a bullet at the beginning of each selected text.
Cut and Merge
Remove the selected fragments and merge the surrounding text into a single block.
Insert Text
Replace the selected text with new content.
Center Left
Align text to the nearest selected character from the left. This only works if there is a space or other white space in the selected text at that position.
Center Right
Align the text to the nearest selected character from the right.
Center to the Center
Align text to the center of the selected range. This only works if the remaining text to the left ends in a space.
Connect
Combine all selected text fragments into a single block up to the first selection.
Mark
Visually mark the selected text or lines.
Remove the Markings
Remove all visual markings.
Occurrence
Display the number of times the selected text appears within the entire selection.
Reverse Lines
Reverse the order of the selected lines.
Duplicate Lines
Duplicate the selected lines and insert them after the original selection.
Remove Blank Lines
Remove empty lines within the selected selection.
Support
If you encounter any problems, please use the official bug report form: https://docs.google.com/forms/d/e/1FAIpQLSeYlQi4EkBVSv_3Ghd7IhCjkrz9F-T7KgtfoeR3P6ZVLin-KA/viewform?usp=dialog
License
This project is available under the MIT License.