I have created this tool for myself. You can use it too. If you have more suggestion
please create issue on github.
Welcome to the Visual Studio Code Toolbox Extension! This extension provides a set of convenient tools for quick actions within your code editor, simplifying tasks like moving code blocks, wrapping try-catch statements, and inserting console.log statements effortlessly.
Move Code Blocks: Easily shift lines or selected code up and down within your file for better organization and readability.
Wrap Try-Catch: Instantly encapsulate selected code with try-catch blocks to handle exceptions efficiently.
Insert Console.Logs: Swiftly add console.log statements around selected code segments for debugging purposes.
Launch Visual Studio Code.
Go to the Extensions view (Ctrl+Shift+X).
Search for "Toolbox Extension".
Click Install to install it.
Reload Visual Studio Code.
Moving Code Blocks
Select the code block or lines you want to move.
Use the designated shortcut or find the action in the command palette.
Enjoy the flexibility of rearranging your code effortlessly!
Select the code you wish to wrap in a try-catch block.
Access the wrapping action using the shortcut or command palette.
Simplify error handling within your codebase!
Highlight the section of code where you want to insert console.log statements.
Utilize the extension's feature to automatically add console.log statements around the selected code.