Work with source codeCode generationLive templatesSurround with live templatesSurround with live templates Last modified: 29 June 2021 Surround a block of code with a live template In the editor, select the piece of code to be surrounded.Do one of the following:On the main menu, choose Code | Surround With Live Template....Press Ctrl+Alt+JSelect the desired template from the suggestion list.