SmartFormatter READMESmartFormatter is all you need text formatter for VSCode. Use shortcut to bring up command palette: What's new
FeaturesFormat string by select the string (without quote) and calling commands in Most used feature includes:
To UPPER CASEFrom: "This is an example of String" To: "THIS IS AN EXAMPLE OF STRING" To lower caseFrom: "This is an example of String" To: "this is an example of string" Merge linesMerge multiple line text into a single line string. The From: "this is an example of String. you can format string by calling command" To: "this is an example of String. you can format string by calling command" To snake_caseFrom: "SmartFormatter" To: "smart_formatter" To CONSTANT_CASEFrom: "SmartFormatter" To: "SMART_FORMATTER" To PascalCaseFrom: "smart_formatter" To: "SmartFormatter" To camelCaseFrom: "smart_formatter" To: "smartFormatter" To sentenceFrom: "SMART_FORMATTER" To: "smart formatter" To Custom VariableTo custom variable format the string into variable with the characters you specified. From: "SmartFormatter" Enter: "-" To: "Smart-Formatter" You can capitalize each words by setting the configuration From: "smart_formatter" Enter: "-" To: "Smart-Formatter" Also, you can set EscapeEscape selected text and auto detect programming language id in this document. Make sure you DO NOT select the quote around the string. If any error or language is not supported, please try "Escape With Language" From: "\ This is an "C#" escape" To: "\ This is an\n\n"C#" escape" UnescapeFrom: "\ This is an\n\n"C#" escape" To: "\ This is an "C#" escape" Escape/Unescape With LanguageEscape with language will allows you select a language from a range of available ones. If you can't find the language you are looking for, maybe try one with similar identity. E.g. Escape C is the same as C#, C++, Java. If you still can not format text properly, please send me an email. Escape String Value / Unescape String ValueEscape string value will format string so it can be assigned to a string variable. Only escapes the quote (") and backslash (). Common use case is the file path in Windows. E.g. From: "C:\Users\SmarterTomato\Downloads\Test.doc" To: "C:\Users\SmarterTomato\Downloads\Test.doc" Extension Settings
Known IssuesFor some escape/unescape may contains error, please send me a email or create a issue in the GitHub (specified the language id). I will fix ASAP. ContactsFor any issues or suggestions, contact me via following method: Email: smartertomato@gmail.com GitHub: SmartFormatter GitHub Future Plans
Release Notesv1.1.0 - 2020-07-01New
Update
For more information |