Live Template Region

Hi,

I've got a live template and I'd like the first line to be inserted at the begining of the file and the rest where I entered the shortcut, is there a way to achieve that?

$SELSTART$private $type$ _$propertyLower$;$SELEND$

public $type$ $property$
{
   get => _$propertyLower$;
   set => SetProperty(ref _$propertyLower$, value);
}


Maybe something like this to place different parts of code in differents existing regions could be really cool :-)

$REGION$Fields$REGION$

    private $type$ _$propertyLower$;

$ENDREGION$Fields$ENDREGION$


$REGION$Properties$REGION$

   public $type$ $property$
   {
      get => _$propertyLower$;
      set => SetProperty(ref _$propertyLower$, value);
   }

$ENDREGION$Properties$ENDREGION$

0
1 comment
Official comment

Hello Josselin,

Currently there's no such option, I've filed a corresponding feature request - https://youtrack.jetbrains.com/issue/RSRP-487943.

Thank you.

Please sign in to leave a comment.