A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.jetbrains.com/idea/webhelp/creating-code-constructs-by-live-templates.html below:

Generate custom code constructs using live templates

Generate custom code constructs using live templates

IntelliJ IDEA provides a multitude of predefined live templates for many common code constructs. You can also define custom templates to cover use cases specific to your workflow.

Insert a live template
  1. Place the caret at the place where you want the template to expand.

  2. Type the template abbreviation and press the invocation key (usually Tab by default). Alternatively, on the menu, click Ctrl+J to open the suggestion list and select the necessary template.

  3. If the selected template requires user input, the corresponding field is highlighted. Type the necessary value and press Enter or Tab to complete input and move to the next input field. After completing all input fields, the caret moves to the end of the construct (or to the $END$ marker if the marker is defined in the template code), and the editor returns to the regular mode of operation.

You can also wrap fragments of code using surround templates.

Surround a block of code with a live template
  1. Select a piece of code to be surrounded.

  2. On the menu, click Ctrl+Alt+J to open the suggestion list and select the necessary template.

08 October 2024


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4