DEV Community

loading...

Discussion on: The ultimate collection of vscode extensions for flutter.

Collapse
yatki profile image
Mehmet Yatkı • Edited

Thanks for the list :) Since Bracket Pair Colorizer 2 is in the list I might share mine as well :P Since it makes coding any programming language easier :D So here it is :) I've just released a new version.

GitHub logo yatki / vscode-surround

🔥A simple yet powerful extension to add wrapper templates around your code blocks

Surround

Visual Studio Marketplace Visual Studio Marketplace GitHub last commit License


A simple yet powerful extension to add wrapper snippets around your code blocks

Features

  • Supports language identifiers 🚀New!
  • Supports multi selections
  • Fully customizable
  • Custom wrapper snippets
  • You can assign shortcuts for each wrapper snippets separately
  • Nicely formatted
  • Sorts recently used snippets on top 🚀New!

Demo 1: Choosing a wrapper snippet from quick pick menu

Demo 1

Demo 2: Wrapping multi selections

Demo 2

How To Use

After selecting the code block, you can

  • right click on selected code
  • OR press (ctrl+shift+T) or (cmd+shift+T)

to get list of commands and pick one of them.

Hint

Each wrapper has a separate command so you can define keybindings for your favorite wrappers by searching surround.with.commandName in the 'Keyboard Shortcuts' section.

List of commands


























Command Snippet

surround.with (ctrl+shift+T)
List of all the enabled commands below
surround.with.if if ($condition) { ... }
surround.with.ifElse if ($condition) { ... } else { $else }
surround.with.tryCatch try { ...




Cheers, 🚀🖖

Collapse
yassine353 profile image
Yassine BENNKHAY Author

Thanks for Sharing! I would be glad to use it for sure.

Collapse
yassine353 profile image
Yassine BENNKHAY Author

A star on Github added!

Collapse
yatki profile image
Mehmet Yatkı

Thank you very much :)) Cheers,

Forem Open with the Forem app