If some parts of the code are surrounded by #region blocks, the regions appear in the file structure too. You can double-click any symbol to make the caret in the editor switch to the corresponding position. Press Alt+7 or choose View | Tools Windows | Structure.Ĭontents of the current document appear in a tree structure, that you can explore and navigate through the document. To list file members using a popup instead of a tool window, press Ctrl+F12 To navigate through the file easily, preprocessor directives are hidden by default. The window is synchronized with the editor: as you switch to another editor tab, the window displays the structure of the corresponding file. With JetBrains Rider, you can navigate the structure of the current document using the Structure window, which greatly simplifies navigation in large files. Move the caret to first/last character in the current document. Move the caret up/down to the current height of the editor area and scroll the document accordingly, and then further with the same step in the same direction. Move the caret to the top/bottom line of the currently visible editor area, without scrolling. Move the caret to the declaration of the next/previous member in the current type. Move the caret to the opening/closing brace of the enclosing code block. When the caret is right before or after a brace, a bracket, or HTML/XML tag, jump to the item that matches it. Move the caret to the declaration of a type or a function from any position within its body. Move the caret to the first/last character on the current line. This behavior is configurable in the Caret Movement section on the Editor | General settings page. Note that by default, on Ctrl+Right the caret jumps to the end of the current word. If Use CamelHumps is selected on the Editor | General | Typing Assistance page of the IDE settings Ctrl+Alt+S, the caret will move to the next/previous capitalized word inside identifiers with CamelCase names. To understand the syntax read Readline Notation section first and then move on to Commands for Moving.Īnother helpful cheatsheat with Bash shortcuts and features can be found at fliptheweb/bash-shortcuts-cheat-sheet.Move the caret to the beginning/end of the current word, and then further word by word in the same direction. Use fg to bring back.Įxit the current shell (also works in SSH, so need to type exit).Īll other shortcuts can be found in man bash. Very handy when you want fix typo in the program name and come back.Įdit the current command in your $EDITOR. Toggle between the current cursor position and the beginning of the line. Move cursor forward one word, will jump to the next word’s first character. Move cursor back one word, will jump to the current word’s first character or if already there to the previous word’s first character. ShortcutĪ is the 1st letter of alphabet, hence the beginning of the line. Note: MacOS iTerm 2 users must turn on meta key - Ī good visual cheatsheat of shortucts taken from Clement Chastagnol’s article:Īlso, in the description I’ll say how I memorize the shortcuts. I compiled the minimal list of shortcuts and commands which can increase your productivity in bash. I often end up googling “bash shortcuts” and every result lists a huge list of shortcuts available in bash, some of them are overridden by other utils, like fzf or by your terminal itself, some of them are not that helpful.
0 Comments
Leave a Reply. |