DEV Community

Cover image for Introducing Shell Command 2: The Ultimate Shell Command Runner for VSCode
Le Vuong
Le Vuong

Posted on

Introducing Shell Command 2: The Ultimate Shell Command Runner for VSCode

Are you tired of switching back and forth between your text editor and terminal just to run simple shell commands on your code? Well, worry no more! Introducing Shell Command 2, the VSCode extension that revolutionizes your workflow by allowing you to execute shell commands directly within your editor.

Features

Seamless Integration: With Shell Command 2, you can seamlessly run shell commands on selected text within the VSCode editor. Whether it's a single line or a block of code, you can execute any command available in your shell with just a few clicks.

Efficient Execution: Not only can you run commands on selected text, but you can also execute a command when selecting nothing. The output of the command will be printed right at the cursor, eliminating the need to constantly switch between tabs or windows.

Smart Command History: Shell Command 2 remembers the command you've previously executed, saving you time and effort. Say goodbye to repetitive typing – with just a few keystrokes, you can rerun your most recent commands in an instant.

Custom Shortcuts: If you find yourself running certain commands frequently, you can create custom shortcuts for them. Simply define your desired shortcut in the Keyboard Shortcut JSON file, specifying the command you want to execute. It's quick, easy, and tailored to your workflow.

How to Get Started

** Install the Extension **: Head over to the VSCode Marketplace and install the Shell Command 2 extension.

Select Your Text: Highlight the text you want to run the command on, or leave it blank to execute a command at the cursor.

Execute Your Command: Use the designated shortcut or menu option to execute the command and witness the magic happen right within your editor.

Customize Your Shortcuts: For frequently used commands, create custom shortcuts by editing the Keyboard Shortcut JSON file. Define your shortcut keys and specify the commands you want to associate with them.

See It in Action

Still not convinced? Check out our documentation, complete with GIF automation, to see Shell Command 2 in action. Watch as we effortlessly use commands like sed, sort, and gawk to manipulate text and streamline our coding process.

With Shell Command 2, running shell commands in VSCode has never been easier. Say goodbye to unnecessary context switching and hello to a more efficient coding experience. Try it out today and supercharge your productivity!

Link to Shell Command 2 Extension with GIF Automation.

Happy coding! πŸš€

Top comments (1)

Collapse
 
ccoveille profile image
Christophe Colombier • Edited

Thanks, I'll check that. I opened some GitHub issues.