SlickEdit Product Discussion > Did you know?

Syntax Expansion for single-line if

(1/1)

Dennis:
Did you know SlickEdit has a syntax expansion shortcut for expanding a one-line statement?   Suppose you have the following:

--- Code: ---if
--- End code ---

And you press space to expand the statement (here carets represent cursor hot-spots):

--- Code: ---if ( ^ ) {^
}
--- End code ---

But you wanted a single-line if statement, if you hit semicolon instead of space to expand it, you get:

--- Code: ---if ( ^ ) ^;
--- End code ---

Navigation

[0] Message Index

Go to full version