网页
综合
更新时间 2026-11-14 01:36:54
Code navigation | AppCode Documentation
自动蜘蛛
www.jetbrains.com
正文约 5016 字
You can quickly navigate through code in the editor using different actions and popups. For the detailed information on navigating between the editor and tool windows, check the editor basics.
To navigate backwards, press Ctrl+Alt+Left. To navigate forward, press Ctrl+Alt+Right.
To navigate to the last edited location, press Ctrl+Shift+Backspace.
To find the current caret location in the editor, press Up and Down arrow keys.
To highlight a word at the caret you are trying to locate, select Edit | Find | Next Occurrence of the Word at Caret from the main menu.
To see on what element the caret is currently positioned, press Alt+Q.
To move caret between matching code block braces, press Ctrl+Shift+M.
To navigate to the code block start, press Ctrl+[, with the caret anywhere inside the code block. If the caret is already at the opening brace, press Ctrl+[ to jump to the start of the higher code block.
To navigate to the code block end, press Ctrl+], with the caret anywhere inside the code block. If the caret is already at the closing brace, press Ctrl+[ to jump to the end of the higher code block.
To navigate between code blocks, press Ctrl+[ or Ctrl+].
You can use different actions to move the caret through code. You can also configure where the caret should stop when moved by words and on line breaks.
To move the caret to the next word or the previous word, press Ctrl+Right or Ctrl+Left.
By default, AppCode moves the caret to the end of the current word.
When you move the caret to the previous word, the caret is placed in the beginning of the current word. You can configure the position of the caret when you use these actions.
In the Preferences dialog (Ctrl+Alt+S), go to Editor | General. In the Caret Movement section, use the When moving by words and Upon line break options to configure the caret's behavior.
To move the caret forward to the next paragraph or backward to the previous one, press Ctrl+Shift+A and search for the Move Caret Forward a Paragraph or Move Caret Backward a Paragraph action.
You can also select a text and then move the caret forward or backward to a paragraph. Press Ctrl+Shift+A and search for the Move Caret Forward a Paragraph with Selection or Move Caret Backward a Paragraph with Selection action.
If you need, you can assign shortcuts to these actions. Refer to Configure keyboard shortcuts for details.
You can also check your recently viewed or changed code using the Recent Locations popup.
To open the Recent Locations popup, press Ctrl+Shift+E. The list starts with the latest visited location at the top and contains code snippets.
While in the popup, use the same shortcut or select the Show changed only checkbox to see only the locations with changed code.
To search for a code snippet, in the Recent Locations popup, start typing your search query. You can search by the code text, filename, or breadcrumbs.
To delete a location entry from the search results, press either Delete or Backspace.
Keep in mind that the deleted location is also removed from the list of entries that you access with the Ctrl+Alt+Left shortcut.
To create an anonymous bookmark, place the caret at the needed code line and press F11.
To create a bookmark with mnemonics, place the caret at the needed code line, press Ctrl+F11 and select a number or a letter for the mnemonics.
To show the next or the previous bookmark, in the main menu select Navigate | Bookmarks | Next Bookmark or Navigate | Bookmarks | Previous Bookmark.
To open the Bookmarks dialog, press Shift+F11. You can use this dialog to manage bookmarks, for example, delete, sort bookmarks, or supply them with a brief description.
To navigate to an existing bookmark with letter mnemonics, press Shift+F11 and then press a letter you need. AppCode returns you to the editor and to the corresponding bookmark.
To navigate to an existing bookmark with number mnemonics, press Ctrl and the bookmark's number.
You can check how to toggle between bookmarks with mnemonics, in the settings (Ctrl+Alt+S), on the Keymap page under the Other node.
If you edit a file that is under version control, AppCode provides several ways to move back and forth with the updates. In particular, you can use the navigation commands, keyboard shortcuts, and the change markers.
Press Ctrl+Alt+Shift+Down / Ctrl+Alt+Shift+Up.
From the main menu, choose Navigate | Next / Previous Change.
Click a change marker, and then click or .
To navigate to the place of your last edit, press Ctrl+Shift+Backspace or select Navigate | Last Edit Location from the main menu.
You can navigate to the initial declaration of a symbol and symbol's type from its usage.
Place the caret at the desired symbol and press Ctrl+B.
Alternatively, use Ctrl+Click: keeping Ctrl pressed, hover your mouse pointer over the symbol. When the symbol turns into a hyperlink, its declaration will be displayed in the tooltip. Click the hyperlink without releasing the key to open the declaration in the editor.
For a type declaration, press Ctrl+Shift+B.
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。