DEV Community

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

  • Now works on VSCode for Web 🚀New!
  • Supports language identifiers
  • Supports multi selections
  • Fully customizable
  • Custom wrapper snippets
  • You can assign shortcuts for each wrapper snippets separately
  • Nicely formatted (Preserves indentations)
  • Sorts recently used snippets on top

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 {




Cheers, 🚀🖖

Collapse
 
yassine_dev profile image
Yassine BENNKHAY

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

Collapse
 
yassine_dev profile image
Yassine BENNKHAY

A star on Github added!

Collapse
 
yatki profile image
Mehmet Yatkı

Thank you very much :)) Cheers,