Make Code Multiline
Format selected JavaScript or TypeScript as readable multiline code using Prettier.
Use
Select code in a JavaScript, JSX, TypeScript, or TSX file, then:
- Press
Shift+Alt+M (Shift+Cmd+M on macOS), or
- Right-click and choose Make Selection Multiline.
Select the whole file to format everything. With no selection, nothing changes.
Set up from source
git clone https://github.com/whocerulean/make-code-multiline.git
cd make-code-multiline
npm install
code .
Press F5 in VS Code to open an Extension Development Host and test the command there.
Test and package
npm test
npx @vscode/vsce package
Install the generated .vsix through Extensions: Install from VSIX....
Author
whocerulean
| |