Author Topic: Syntax Expansion for single-line if  (Read 1003 times)

Dennis

  • Senior Community Member
  • Posts: 3954
  • Hero Points: 515
Syntax Expansion for single-line if
« on: March 07, 2023, 01:36:48 PM »
Did you know SlickEdit has a syntax expansion shortcut for expanding a one-line statement?   Suppose you have the following:
Code: [Select]
if
And you press space to expand the statement (here carets represent cursor hot-spots):
Code: [Select]
if ( ^ ) {^
}

But you wanted a single-line if statement, if you hit semicolon instead of space to expand it, you get:
Code: [Select]
if ( ^ ) ^;