Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Code Block MoverNew to Visual Studio Code? Get it now.
Code Block Mover

Code Block Mover

development.vargamarcel

|
5 installs
| (0) | Free
move code blocks based on regex or search parameters
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Move code block (called source block) bellow or above another code block (called destination block) in every file contained in the selected folder and its subfolders.

Both code block types can be targetted usign regex or providing the startOfString and endOfString like this:

startOfString ... endOfString

Example:

If i get this code block:

<script src="https://gist.github.com/username/gist-id.js">
a

dsghdhj ds

i want to move this code block right bellow
the `<script src="https://gist.github.com/username/gist-id.js">` line.
</script>

And i provide these values: source block: <script ... > destination block: i want ... line.

I will get this code block:

<script src="https://gist.github.com/username/gist-id.js">
i want to move this code block right bellow
the `<script src="https://gist.github.com/username/gist-id.js">` line.
a

dsghdhj ds


</script>
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft