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


  • Senior Community Member
  • Posts: 3984
  • Hero Points: 518
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]
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 ( ^ ) ^;