Move Statement Up or Down

Actions Code → Move Statement Up and Code → Move Statement Down help you to quickly rearrange code.

Usage

Place the text cursor on the statement you would like to move. Then invoke Code → Move Statement Up or Code → Move Statement Down to move it. The statement will switch places with the previous or next statement.

Please note, that only complete statements are moved. For example, all of echo first || echo second will be moved at once.

Examples

Changing the Order of Function Declarations

Changing the order of function definitions with 'Move statement up'
Changing the order of function definitions with 'Move statement up'

Changing the Order of Pipeline Commands

Changing the order of two pipeline commands
Changing the order of two pipeline commands
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal