https://github.com/zardoy/extra-commands
VSCode commands that should be builtin
https://github.com/zardoy/extra-commands
Last synced: 8 months ago
JSON representation
VSCode commands that should be builtin
- Host: GitHub
- URL: https://github.com/zardoy/extra-commands
- Owner: zardoy
- License: mit
- Created: 2021-10-03T01:44:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-12T16:04:26.000Z (about 2 years ago)
- Last Synced: 2025-01-07T04:06:17.174Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=zardoy.extra-commands
- Size: 543 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/zardoy/vscode-experiments).
## Commands
### `openShortcutsOfAnotherPlatform`
[microsoft/vscode#134338](https://github.com/microsoft/vscode/issues/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](https://github.com/microsoft/vscode/issues/135429)
### `renameSymbolAndFile`
Renames symbol and (forcefully!) renames file to the same name.
For example:
```ts
// 📁 parseSomething.ts
export const parseSomething = () => {}
```
Position cursor on `parseSomething` variable and run this command. It will rename the symbol and file name. (refactor)
```ts
// 📁 parseString.ts
export const parseString = () => {}
```
You can just run it with the same name to quickly turn file name into symbol name:
```ts
// 📁 parseString.ts
export const parseSomething = () => {}
```
After running on `parseSomething`:
```ts
// 📁 parseSomething.ts
export const parseSomething = () => {}
```
> `typescript.updateImportsOnFileMove.enabled` recommended to be `always`
> Be aware, ctrl+z most probably won't work correctly
### `managePlatformKeybindings`
Add keybindings like `ctrlCmd+shift+t` to `universal` group and these will be inserted into keybindings.json in normalized way (two different keybindings for different platforms).
## Text Commands
### `deleteAllLeftAfterIndent`
I use it as fixed variant of `cmd+backspace` shortcut.
### `removeSurroundingCharacter`
```ts
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.