PhpStorm Briefs

45: Surround Templates


Listen Later

When you need to surround a word or any block of code with single or double
quotes, square brackets or anything else you can use surround templates for
this.
Also applies to: WebStorm
Key mappings
OSX:
- Find Action: Shift + Command + A, Type: Live templates
- Surround with Live Template: Command + Alt + J
Win/Linux:
- Find Action: Shift + Ctrl + A, Type: Live templates
- Surround with Live Template: Ctrl + Alt + J
Docs
Creating Code Constructs Using Surround Templates (https://www.jetbrains.com/phpstorm/help/creating-code-constructs-using-surround-templates.html)
Questions/Comments/Suggestions
@PhpStormBriefs (https://twitter.com/phpstormbriefs)
...more
View all episodesView all episodes
Download on the App Store

PhpStorm BriefsBy Henning Glatter-Götz