Files
openide/ideTipsAndTricks/resources/tips/MoveUpDown.html
2025-04-30 13:26:44 +04:00

25 lines
1.4 KiB
HTML

<!-- OpenIDE Project -->
<!-- Copyright (C) 2025 “Open Development Platform” Ltd. (https://openide.ru) -->
<!-- -->
<!-- This program is free software: you can redistribute it and/or modify -->
<!-- it under the terms of the GNU Affero General Public License version 3 or later as published by the Free Software Foundation. -->
<!-- -->
<!-- This program is distributed in the hope that it will be useful, -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
<!-- GNU Affero General Public License for more details. -->
<!-- -->
<!-- You should have received a copy of the GNU Affero General Public License -->
<!-- along with this program. If not, see http://www.gnu.org/licenses/. -->
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/tips.css">
</head>
<body><p><b>Move statements up and down</b></p>
<p>The <span class="control">Code | Move Statement Up/Down</span> actions are useful for reorganizing code lines, for example for bringing a
variable declaration closer to the variable usage.</p>
<p>Select a code fragment and press <span class="shortcut">&shortcut:MoveStatementUp;</span> or
<span class="shortcut">&shortcut:MoveStatementDown;</span>.</p>
<p>When nothing is selected in the editor, the line at the caret position will be moved.</p></body>
</html>