xiaozhikang0916 / vscode-string-manipulation

VSCode extension to add common string manipulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js CI

String Manipulation for VSCode

This extension provides string manipulation commands for any selected text as well as multiple selections.

Current string functions available:

  1. camelize
  2. capitalize
  3. classify
  4. chop - split into groups provided n # of characters
  5. clean
  6. clean diacritics
  7. dasherize
  8. decapitalize
  9. humanize
  10. reverse
  11. screaming snake
  12. sentence
  13. slugify
  14. snake
  15. underscore
  16. swap case
  17. titleize
  18. titleize (AP Style)
  19. titleize (Chicago Style)
  20. truncate - trims string to n # of characters and appends ellipsis
  21. prune - truncate but keeps ellipsis within character count provided
  22. repeat - repeat selection n #of times

Number related functions:

  1. increment all numbers in selection
  2. decrement all numbers in selection
  3. duplicate selection and increment all number
  4. duplicate selection and decrement all number
  5. sequence all numbers in selection from first number

Use

To use these commands, press ⌘+p and enter any of the commands above while text is selected in your editor.

String Manipulation Screencast

License

The MIT License (MIT)

Copyright (c) 2016 Marc Lipovsky

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

VSCode extension to add common string manipulation


Languages

Language:JavaScript 100.0%