Visual Studio Code: some notes on marco tools for vscode
Posted by jpluimers on 2022/01/03
In Visual Studio Code: blazingly fast text expansion with Emmet I wrote:
One of my behaviours I wanted to get rid of is heavily use of keyboard macros, so when doing more web-stuff, I bumped into Emmet (that in the past was called Zen Code).
That didn’t fully cut it, not even in combination with regular expression based search/replace, so I finally to some time to look at some links that might help me out with keyboard macros.
The links for my archive, most via [Wayback/Archive] vscode macro recorder – Google Search:
- [Wayback/Archive] VSCode HackerTyper – Visual Studio Marketplace
Great for live coding presentations, impressing your friends, or just trying to look busy at work.HackerTyper allows you to record yourself programming, and to replay the same keystrokes by wildly mashing any key. Supports typing, editing, selections (including multicursor) and autocompletions. Basically, it looks like you have programming superpowers.Features
- Record and replay macros.
- Insert stop points, so you don’t accidentally overrun your talking point while live coding.
- [Wayback/Archive] VSCode HackerTyper modified by nodename – Visual Studio Marketplace
Hacker Typer allows you to record your keystrokes in VSCode, and to play them back either automatically or by typing random keys. Supports typing, editing, selections (including multicursor) and autocompletions.This version is a fork of Jani Eväkallio’s original extension.Features
- Record and play macros.
- Insert stop points, so you don’t accidentally overrun your talking points while “live coding.”
- Play macros back either automatically or by typing randomly.
- Via [Wayback/Archive] Recording a ‘macro’? or a series of actions in Visual Studio Code? – Stack Overflow
- [Wayback/Archive] visual studio code – How to simultaneously create a new folder and multiple files in VSCode? – Stack Overflow
- [Wayback/Archive] macro-commander (Command Runner) – Visual Studio Marketplace
It lets you write a quick sequence of commands/scripts to automate VS Code tasks. Example sub-actions are; running command line commands, opening a debugging session, pushing git changes, renaming many files, creating smart snippets, formatting the current file and more.What are some use-case examples?
- A run command that opens up a terminal, starts an SSH connection, and then runs commands on the SSH server
- A new-project command that goes to where ever you typically save projects, uses the GUI to ask for the name of the project, creates the folder, creates a .gitignore with your preferences, runs an init command, and then opens the folder in your current VS Code window.
- A command that opens a project folder, pulls the latest changes, opens several files in that folder, and then displays the recent changes in those files.
- A folder-specific start command, that pulls the latest changes, installs dependiences, formats files, and then opens the debugger with a specific file.
- Via [Wayback/Archive] Macro recording · Issue #4490 · microsoft/vscode:
- [Wayback/Archive] macros – Visual Studio Marketplace (playback programmed macros)
Brings simple, powerful custom macros support to VS Code. Made with <3 by geddskiSee also Level up your Coding with MacrosCreate Custom Macros
Create your own custom macros by adding them to yoursettings.json
(Code|File > Preferences > User Settings)For example:"macros": { "commentDown": [ "editor.action.copyLinesDownAction", "cursorUp", "editor.action.addCommentLine", "cursorDown" ] }
This macro creates a copy of the current line, comments out the original line, and moves the cursor down to the copy.…- Sourcecode: [Wayback/Archive] geddski/macros: macros support for VS Code
- Blogpost: [Wayback/Archive] Level Up your Coding with Macros
- [Wayback/Archive] multi-command – Visual Studio Marketplace
This extension can create command sequence as one command and bind a key, or call it manually.Features
- create command sequence as one command and bind a key.
- call command sequence manually.
- set interval between each command execution.
- [Wayback/Archive] macros – Visual Studio Marketplace (playback programmed macros)
–jeroen
Leave a Reply