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

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3859
  • Hero Points: 509
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 ( ^ ) ^;