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

Sublime Commands

Zarel

|
33,284 installs
| (5) | Free
Adds commands from Sublime Text to VS Code: Transpose, Expand Selection to Line, Split into Lines, Join Lines
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Sublime Commands for VS Code

Adds commands from Sublime Text to VS Code: Transpose, Expand Selection to Line, Split into Lines, Join Lines.

Shortcuts

By default, sublime-commands doesn't add any shortcuts. You should add them to keybinding.json yourself; mine are:

{"key": "ctrl+t", "command": "extension.transpose", "when": "editorFocus"},
{"key": "cmd+l", "command": "extension.expandToLine", "when": "editorFocus"},
{"key": "shift+cmd+l", "command": "extension.splitIntoLines", "when": "editorFocus"},
{"key": "cmd+j", "command": "extension.joinLines", "when": "editorFocus"},

Comparison

  • transpose crashes when some selections are empty and others aren't; sublime-commands doesn't
  • transpose behaves weirdly when there are three or more selections; sublime-commands transposes them like Sublime Text
  • join-lines crashes when a cursor is on the last line, sublime-commands doesn't
  • join-lines doesn't join the last line of a multiline selection, sublime-commands does (matching Sublime Text's behavior)

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft