Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Text ToolboxNew to Visual Studio Code? Get it now.

Text Toolbox

Carlo Cardella

|
1,416 installs
| (1) | Free
Collection of tools for text manipulation, filtering, sorting etc...
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Text Toolbox

.github/workflows/BuildAndPublish.yml Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Downloads Visual Studio Marketplace Rating GitHub issues GitHub license Twitter

Download for VS Code

Download for VS Codium

Collection of tools for text manipulation, filtering, sorting etc...

The VS Code Marketplace has a number of great extensions for text manipulation, I installed a few of them to cover the entire range of actions I normally use, unfortunately that means there is some overlapping between them, basically the same action is contributed by multiple extensions (case conversion, for example). That is what motivated me to build this extension: I like the idea to have a single extension for all those operations and without duplicates; plus, it is a good pastime 😊.

Please open an issue to leave a comment, report a bug, request a feature etc... (you know the drill).

Workspace Trust

The extension does not require any special permission, therefore is enabled to run in an Untrusted Workspace

Visual Studio Code for the Web

Text-Toolbox works in Visual Studio Code for the Web (https://github.dev and https://vscode.dev)

Current list of commands

Notable absents: Convert to Uppercase and Convert to Lowercase have been removed in favor of the built-in commands in VScode. Likewise, Convert to CapitalCase has been removed in favor of the built-in VSCode command Transform to Title Case.

Text conversions

  • PascalCase
    • Lorem ipsum dolor sit amet => LoremIpsumDolorSitAmet
  • camelCase
    • Lorem ipsum dolor sit amet => loremIpsumDolorSitAmet
  • CONSTANT_CASE
    • Lorem ipsum dolor sit amet => LOREM_IPSUM_DOLOR_SIT_AMET
  • HEADER-CASE
    • Lorem ipsum dolor sit amet => LOREM-IPSUM-DOLOR-SIT-AMET
  • dot.case
    • Lorem ipsum dolor sit amet => lorem.ipsum.dolor.sit.amet
  • kebab-case
    • Lorem ipsum dolor sit amet => lorem-ipsum-dolor-sit-amet
  • Sentence case
    • Lorem ipsum dolor sit amet => Lorem ipsum dolor sit amet
  • snake_case
    • Lorem ipsum dolor sit amet => lorem_ipsum_dolor_sit_amet
  • Invert case
    • Lorem Ipsum Dolor Sit Amet => lOREM iPSUM dOLOR sIT aMET
  • Convert path string to posix format
  • Convert path string to win32 format

Insert text

  • Insert GUID
    • 14854fc2-f782-5136-aebb-a121b9ba6af1
  • Insert GUID all zeros
    • 00000000-0000-0000-0000-000000000000
  • Insert Date
    • DATE_SHORT => 8/25/2020
    • DATE_LONG => Tuesday, August 25, 2020
    • TIME_SIMPLE => 5:34 PM
    • TIME_WITH_SECONDS => 5:34:45 PM
    • DATETIME_SHORT => 8/25/2020, 5:34 PM
    • DATETIME_SHORT_WITH_SECONDS => 8/25/2020, 5:35:17 PM
    • DATETIME_FULL_WITH_SECONDS => August 25, 2020, 5:35 PM PDT
    • DATETIME_HUGE => Sunday, May 30, 2021, 5:59 PM PDT
    • SORTABLE => 2020-08-25T17:34:58
    • UNIVERSAL_SORTABLE => 2020-08-26T00:35:01Z
    • ROUNDTRIP => 2021-05-31T00:52:12.057Z
    • ISO8601 => 2020-08-25T17:35:05.818-07:00
    • ISO8601_DATE => 2020-08-25
    • ISO8601_TIME => 17:35:05.818-07:00
    • RFC2822 => Tue, 25 Aug 2020 17:35:10 -0700
    • HTTP => Wed, 26 Aug 2020 00:35:13 GMT
    • UNIX_SECONDS => 1598402124
    • UNIX_MILLISECONDS =>1598402132390
  • Insert Random
    • IPV4 => 123.75.174.203
    • IPV6 => 7c50:a61a:5ee0:4562:0dda:b41d:114b:71e0
    • NUMBER => 6739440105947136
    • PERSON_NAME
      • random => May Osborne
      • male => Jeffery Ramos
      • female => Theresa Boone
    • SSN => 956-68-2442
    • PROFESSION => Senior Art Director
    • ANIMAL => Grison
    • COMPANY => SBC Communications Inc
    • DOMAIN => cuzkiwpi.sy
    • EMAIL => uve@muvkefcib.cd
    • COLOR
      • hex => #4461ae
      • rgb => rgb(87,199,246)
    • TWITTER => @zatbiini
    • URL => http://fuk.si/ek
    • CITY => Ecicezjev
    • ADDRESS => 1784 Kaolo Grove
    • COUNTRY => IT
    • COUNTRY_FULL_NAME => Italy
    • PHONE => (923) 447-6974
    • ZIP_CODE => 35691
    • STATE => WA
    • STATE_FULL_NAME => Washington
    • STREET => Pase Manor
    • TIMEZONE => Kamchatka Standard Time
    • PARAGRAPH => Cij wam lijoso fa molah il nasiskil ho andot akbuh uku zikahek. Ji balsiffe puzmaano nuug bofevu ra tehar heuwa zorjul hej na heci aka webo lorresu uwage uhe nirsiam.
    • HASH => 61960319307b5f8d298141627
  • Insert Lorem Ipsum
    • Paragraphs
    • Sentences
    • Words
  • Insert random number
  • Insert random currency amount
    • US Dollar
    • Euro
    • British Pound
    • Japanese Yen
    • Chinese Yuan
    • Indian Rupee
    • Mexican Peso
    • Israeli New Shequel
    • Bitcoin
    • South Korean Won
    • South African Rand
    • Swiss Franc
  • Insert line numbers
  • Insert numbers sequence
  • Pad Selection Right
  • Pad Selection Left

Filter

  • Filter lines, result in new Editor
    • use RegExp (default) or set TextToolbox.filtersUseRegularExpressions to false to use simple string match instead
    • RegExp allow for a more targeted search; use global flags to fine tune your search. RegExp must use forward slashes (/) to delimit the expression and the global flags (optional): /<expression>/flags
      • /\d.*/gm
    • string match allows to find all lines containing the string you are looking for, the string must match exactly

Remove

  • Remove all empty lines
    • remove all empty lines from the current document
  • Remove redundant empty line
    • remove all redundant empty lines from the current document: reduces multiple empty lines to one
  • Remove duplicate lines
  • Remove duplicate lines, result in new Editor

Sort

  • Sort lines
    • Ascending
    • Descending
    • Reverse

Control characters

  • Highlight control characters
    • By default control characters are highlighted with a red box but color and border shape can be customized through TextToolbox.decorateControlCharacters
  • Remove control characters
    • By default control characters are replaced with an empty string but this can be changed through TextToolbox.replaceControlCharactersWith.
    • Removes control characters from the current selection(s) or from the entire document if no text is selected

Split

  • Split selection based on delimiter
    • Split and open in new editor

Json

  • Stringify Json
  • Fix and Format Json
  • Minify Json
  • Fix Win32 path in Json

Highlight text

  • Highlight
  • Highlight with color...
  • Highlight all matches, case sensitive
  • Highlight all matches, case insensitive
  • Highlight all matches, case sensitive, with color...
  • Highlight all matches, case insensitive, with color...
  • Highlight with RegExp
  • Highlight with RegExp with color...
  • Remove all highlights
  • Remove highlight

Note: In this release, highlights and decorations are persisted as long as the VSCode instance is running but are not restored if VSCode is restarted. Persistence across restarts will be added in a future release.

Align

  • Align as table
    • Formats a CSV selection as a markdown style table: does not need to be a markdown file, but the table is formatted using the markdown stile
  • Align as table with headers
    • Uses the first line in the CSV selection as table headers, markdown style
  • Align to separator

Others

  • Open selection(s) in new editor
  • Duplicate tab (open the current document's text in a new unsaved document)

Thanks to

Text Toolbox is freely inspired by these fine extensions:

  • gurayyarar DummyTextGenerator
  • qcz vscode-text-power-tools
  • tomoki1207 selectline-statusbar
  • adamwalzer string-converter
  • Tyriar vscode-sort-lines
  • rpeshkov vscode-text-tables
  • wmaurer vscode-change-case
  • volkerdobler insertnums
  • WengerK vscode-highlight-bad-chars
  • nhoizey vscode-gremlins
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2022 Microsoft