Tuesday, November 22, 2016

webStorm To surround a block of code, add block of code



Surrounding blocks of code


To surround a block of code

  1. Select the desired code fragment.
  2. Do one of the following:
    • On the main menu, choose Code | Surround With
    • Press Ctrl+Alt+T.
    A pop-up window displays the list of enclosing statements according to the context.
  3. Select the desired surround statement from the list. To do that, use the mouse cursor, up and down arrow keys, or a shortcut key displayed next to each element of the list.

No comments:

Post a Comment