{"repo":"yatki/vscode-surround","free":true,"listed":false,"github":"https://github.com/yatki/vscode-surround","clone":"git clone https://github.com/yatki/vscode-surround.git","description":"🔥 A simple yet powerful extension to add wrapper templates around your code blocks","language":"TypeScript","stars":1235,"topics":["vscode-extension","snippets","wrapper","surround","typescript","shortcut","vscode-snippets"],"license":"MIT","category":"dev-tools","readme_excerpt":"Surround 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 2: Wrapping multi selections 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 { ... } catch (err) { $catchBlock } surround.with.tryFinally try { ... } finally { $finalBlock } surround.with.tryCatchFinally try { ... } catch (err) {$catchBlock} finally { $finalBlock } surround.with.for for ($1) { ... } surround.with.fori for (let i = 0; ... ; i = i + 1) { ... } surround.with.forEach items.forEach((item) = { ","default_branch":null,"files":null,"tree":[],"storefront":"/r/yatki","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yatki/vscode-surround/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}