What it adds
Commands (48)
| Command | Id |
|---|
| Text Tools: Sort Lines Ascending | textTools.sortAsc |
| Text Tools: Sort Lines Descending | textTools.sortDesc |
| Text Tools: Sort Lines (Ignore Case) | textTools.sortCaseInsensitive |
| Text Tools: Sort Lines by Number | textTools.sortNumeric |
| Text Tools: Sort Lines by Length | textTools.sortByLength |
| Text Tools: Remove Duplicate Lines | textTools.unique |
| Text Tools: Reverse Lines | textTools.reverse |
| Text Tools: Shuffle Lines | textTools.shuffle |
| Text Tools: Join Lines | textTools.join |
| Text Tools: Trim Trailing Whitespace | textTools.trim |
| Text Tools: Trim Whitespace on Both Sides | textTools.trimBoth |
| Text Tools: Remove Blank Lines | textTools.removeBlank |
| Text Tools: Collapse Repeated Blank Lines | textTools.collapseBlank |
| Text Tools: Number Lines | textTools.numberLines |
| Text Tools: Quote Lines as JSON Strings | textTools.quoteLines |
| Text Tools: Turn Lines into a Bullet List | textTools.bullets |
| Text Tools: Convert Tabs to Spaces | textTools.tabsToSpaces |
| Text Tools: Convert Spaces to Tabs | textTools.spacesToTabs |
| Text Tools: Wrap Long Lines | textTools.wrap |
| Text Tools: Change Case... | textTools.changeCase |
| Text Tools: To UPPER CASE | textTools.upper |
| Text Tools: To lower case | textTools.lower |
| Text Tools: To Title Case | textTools.title |
| Text Tools: To Sentence case | textTools.sentence |
| Text Tools: To camelCase | textTools.camel |
| Text Tools: To PascalCase | textTools.pascal |
| Text Tools: To snake_case | textTools.snake |
| Text Tools: To kebab-case | textTools.kebab |
| Text Tools: To CONSTANT_CASE | textTools.constant |
| Text Tools: Swap Case | textTools.swapCase |
| Text Tools: Base64 Encode | textTools.base64Encode |
| Text Tools: Base64 Decode | textTools.base64Decode |
| Text Tools: URL Encode | textTools.urlEncode |
| Text Tools: URL Decode | textTools.urlDecode |
| Text Tools: HTML Entities Encode | textTools.htmlEncode |
| Text Tools: HTML Entities Decode | textTools.htmlDecode |
| Text Tools: Escape for a JSON String | textTools.jsonEscape |
| Text Tools: Unescape a JSON String | textTools.jsonUnescape |
| Text Tools: Text to Hex | textTools.hexEncode |
| Text Tools: Hex to Text | textTools.hexDecode |
| Text Tools: ROT13 | textTools.rot13 |
| Text Tools: Slugify | textTools.slugify |
| Text Tools: Insert UUID | textTools.insertUuid |
| Text Tools: Insert Several UUIDs | textTools.insertUuidMany |
| Text Tools: Insert Date and Time... | textTools.insertDate |
| Text Tools: Insert Lorem Ipsum | textTools.insertLorem |
| Text Tools: Insert a Separator Line | textTools.insertSeparator |
| Text Tools: Insert a Random String | textTools.randomString |
Keybindings
| Keys | Command |
|---|
| Shift+Alt+S | textTools.sortAsc |
| Shift+Alt+C | textTools.changeCase |
| Shift+Alt+U | textTools.insertUuid |
Settings
| Setting | Default | What it does |
|---|
textTools.tabSize | 4 | How many spaces a tab is when converting. |
textTools.wrapColumn | 80 | The column that Wrap Long Lines wraps at. |
textTools.loremParagraphs | 3 | The default number of Lorem Ipsum paragraphs. |
Code
Runs JavaScript from extension.js when: onCommand:textTools.sortAsc, onCommand:textTools.sortDesc, onCommand:textTools.sortCaseInsensitive, onCommand:textTools.sortNumeric, onCommand:textTools.sortByLength, onCommand:textTools.unique, onCommand:textTools.reverse, onCommand:textTools.shuffle, onCommand:textTools.join, onCommand:textTools.trim, onCommand:textTools.trimBoth, onCommand:textTools.removeBlank, onCommand:textTools.collapseBlank, onCommand:textTools.numberLines, onCommand:textTools.quoteLines, onCommand:textTools.bullets, onCommand:textTools.tabsToSpaces, onCommand:textTools.spacesToTabs, onCommand:textTools.wrap, onCommand:textTools.changeCase, onCommand:textTools.upper, onCommand:textTools.lower, onCommand:textTools.title, onCommand:textTools.sentence, onCommand:textTools.camel, onCommand:textTools.pascal, onCommand:textTools.snake, onCommand:textTools.kebab, onCommand:textTools.constant, onCommand:textTools.swapCase, onCommand:textTools.base64Encode, onCommand:textTools.base64Decode, onCommand:textTools.urlEncode, onCommand:textTools.urlDecode, onCommand:textTools.htmlEncode, onCommand:textTools.htmlDecode, onCommand:textTools.jsonEscape, onCommand:textTools.jsonUnescape, onCommand:textTools.hexEncode, onCommand:textTools.hexDecode, onCommand:textTools.rot13, onCommand:textTools.slugify, onCommand:textTools.insertUuid, onCommand:textTools.insertUuidMany, onCommand:textTools.insertDate, onCommand:textTools.insertLorem, onCommand:textTools.insertSeparator, onCommand:textTools.randomString.