https://github.com/tangoman75/vscode-command-cycle
Loop through the repeated execution of a user-defined sequence of commands with every press of the same keybinding
https://github.com/tangoman75/vscode-command-cycle
command cycle keybinding loop repeat sequence vscode vscode-extension
Last synced: 7 months ago
JSON representation
Loop through the repeated execution of a user-defined sequence of commands with every press of the same keybinding
- Host: GitHub
- URL: https://github.com/tangoman75/vscode-command-cycle
- Owner: TangoMan75
- License: mit
- Created: 2025-03-24T14:13:36.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-08T14:24:58.000Z (7 months ago)
- Last Synced: 2025-07-08T15:34:53.332Z (7 months ago)
- Topics: command, cycle, keybinding, loop, repeat, sequence, vscode, vscode-extension
- Language: JavaScript
- Homepage:
- Size: 1.46 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/TangoMan75/vscode-command-cycle/releases)
[]((https://github.com/TangoMan75/vscode-command-cycle/blob/master/LICENSE))
[](https://github.com/TangoMan75/vscode-command-cycle/stargazers)
[](https://github.com/TangoMan75/vscode-command-cycle/actions/workflows/shellcheck.yml)

🔁 TangoMan vscode-command-cycle
================================
The **TangoMan vscode-command-cycle** extension for _Visual Studio Code_ enables the repeated execution of a user-defined sequence of commands. These command sequences are configured within the `keybindings.json` file, providing a customizable workflow.
🚀 Installation
---------------
### Step 1: Install the Extension
Launch _VSCode Quick Open_ (`Ctrl+P`), paste the following command, and press `Enter`.
```
ext install TangoMan75.command-cycle
```
Or install the extension via the command line:
```bash
code --install-extension TangoMan75.command-cycle
```
Or install the `.vsix` package manually:
1. Download the source code.
2. Open the _Extensions View_ in _VSCode_.
3. Click on the Extensions icon in the _Activity Bar_.
4. Click on the three-dot icon (`...`) in the top-right corner.
5. From the dropdown menu that appears, select "`Install from VSIX...`".
### Step 2: Configure Keybindings
Edit your _VSCode_ keybindings configuration in the `keybindings.json` file to define the commands to cycle through.
For example, while using the `wmaurer.change-case` extension, you can cycle through various text case transformations (e.g., sentence case, title case, camelCase, etc.) by pressing `Ctrl+K Ctrl+T` repeatedly.
```json
{
"key": "ctrl+k ctrl+t",
"command": "command-cycle.loop",
"args": {
"commands": [
"extension.changeCase.sentence",
"extension.changeCase.title",
"extension.changeCase.camel",
"extension.changeCase.pascal"
]
},
"when": "editorTextFocus && !editorReadonly"
},
```

Replace the commands in the `commands` array with the ones you want to cycle through.
🔥 Usage
--------
1. Press the keybinding you configured (e.g., `Ctrl+K Ctrl+T`).
2. The extension will execute the commands in the order specified in the `commands` array.
3. Each subsequent key press will execute the next command in the cycle.
📝 Notes
--------
- Ensure that the commands you specify in the `commands` array are valid Visual Studio Code commands.
- You can find available commands by opening the Command Palette (`Ctrl+Shift+P`) and typing `>`.
🤝 Contributing
---------------
Thank you for your interest in contributing to **TangoMan vscode-command-cycle**.
Please review the [Code of Conduct](https://github.com/TangoMan75/vscode-command-cycle/blob/master/CODE_OF_CONDUCT.md) and [Contribution Guidelines](https://github.com/TangoMan75/vscode-command-cycle/blob/master/CONTRIBUTION.md) before starting to work on any features.
If you want to open an issue, please check first if it has not been [reported already](https://github.com/TangoMan75/vscode-command-cycle/issues) before creating a new one.
📜 License
----------
Copyright (c) 2025 "Matthias Morin" <mat@tangoman.io>
[](LICENSE)
Distributed under the MIT license.
If you like **TangoMan vscode-command-cycle**, please star, follow, or tweet:
[](https://github.com/TangoMan75/vscode-command-cycle/stargazers)
[](https://github.com/TangoMan75)
[](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FTangoMan75%2Fvscode-command-cycle)
... And check out my other cool projects.
👋 Let's Build Your Next Project Together !
-------------------------------------------
Looking for an experienced Full-Stack Partner ?
Clean code. Clear communication.
From first sketch to final launch, I've got your back.
[](https://tangoman.io)