The Trim Whitespace tool is a simple yet essential utility for cleaning your scripts. It removes unnecessary leading and trailing whitespace to help keep your code neat and clean.
📍 Location
You can access Trim Whitespace from the:
Right-Click Context Menu in the Text Editor
Trim Whitespace
Note: The option will only appear if there’s leading or trailing whitespace detected in the script.
How to Use?
Open a script in the Text Editor.
Right-click anywhere in the editor.
If the script contains whitespace at the beginning or end of any line, the Trim Whitespace option will be visible.
Click the button to automatically clean the script.