georgegu1997 / args-split

A simple VSCode extension that splits selected text to a list of quoted words

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

args-split README

This extension can convert the selected text to a list of quoted words, or do the reverse. You will find this useful if you work a lot with launch.json files, or if you need to pass a list of arguments to a command line tool.

Acknowledgements: The core code of this extension is generated by GPT-4.

Features

  • Convert the selected text to a list of quoted words
    "--arg1 a --arg2 b --arg3 c" => "--arg1", "a", "--arg2", "b", "--arg3", "c"
  • Convert a sequence of quoted words to a single string
    "--arg1", "a", "--arg2", "b", "--arg3", "c" => "--arg1 a --arg2 b --arg3 c"
  • It also handles multiline text
--arg1 a \\
--arg2 b \\
--arg3 c
=> "--arg1", "a", "--arg2", "b", "--arg3", "c"

Requirements

If you have any requirements or dependencies, add a section describing those and how to install and configure them.

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • myExtension.enable: Enable/disable this extension.
  • myExtension.thing: Set to blah to do something.

Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

Release Notes

Users appreciate release notes as you update your extension.

0.0.1

An initial minimal version of the extension.


About

A simple VSCode extension that splits selected text to a list of quoted words

License:MIT License


Languages

Language:TypeScript 100.0%