zardoy / extra-commands

VSCode commands that should be builtin

Home Page:https://marketplace.visualstudio.com/items?itemName=zardoy.extra-commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extra Commands

Contains VSCode commands, that should be builtin!!

Some commands are already builtin or already got covered by another extension? Create an issue! Once I find one of these commands, it will be removed from this extension! So, expect breaking changes.

However, for now, there is no even way to notify you about that!

You can find more experimental and unstable commands/features in vscode-experiments.

Commands

openShortcutsOfAnotherPlatform

microsoft/vscode#134338

goToLine

  1. Doesn't jump between lines when you enter numbers
  2. Shows helpful message if you exceeded number of lines
  3. When you jump to line, keep you screen in center (can be enabled/changed via setting)

openExtensionFolder

Right click on extension (from sidebar) -> Open Extension Folder.

togglePanelVisibility

microsoft/vscode#135429

renameSymbolAndFile

Renames symbol and (forcefully!) renames file to the same name.

For example:

// πŸ“ parseSomething.ts

export const parseSomething = () => {}

Position cursor on parseSomething variable and run this command. It will rename the symbol and file name. (refactor)

// πŸ“ parseString.ts

export const parseString = () => {}

You can just run it with the same name to quickly turn file name into symbol name:

// πŸ“ parseString.ts

export const parseSomething = () => {}

After running on parseSomething:

// πŸ“ parseSomething.ts

export const parseSomething = () => {}

typescript.updateImportsOnFileMove.enabled recommended to be always Be aware, ctrl+z most probably won't work correctly

Text Commands

deleteAllLeftAfterIndent

I use it as fixed variant of cmd+backspace shortcut.

removeSurroundingCharacter

const obj = {
    'foo',
    'barr'
}

Select everything inside brackets, and run this command to remove surrounding symbols of the selection. Then you can quickly type [ to turn it into array.

About

VSCode commands that should be builtin

https://marketplace.visualstudio.com/items?itemName=zardoy.extra-commands

License:MIT License


Languages

Language:TypeScript 99.6%Language:JavaScript 0.4%