源码阅读能力,除了基础语法能力和编程语言的支持、程序编写过程中的整洁能力。剩下的是IDE对于源码阅读的支持能力。包括以下特别重要的代码阅读能力。

    支持代码阅读功能 工具支持能力
    序号 关键能力 KeyWord VSCode XCode QTCreater
    1 文件定位能力 File Locatio
    2 类定位能力 Class Locator
    3 代码折叠能力 Fold UnFold
    4 代码跳转能力 Navigation
    5 继承关系 Hierarchy
    6 调用关系,只能上溯一层 Reference go to reference
    7 调用堆栈能力 Call Stack

    Folding has been rolled out and is now implemented since Visual Studio Code version 0.10.11. There are these keyboard shortcuts available:

    • Foldfolds the innermost uncollapsed region at the cursor:
      • Ctrl + Shift + [ on Windows and Linux
      • ⌥ + ⌘ + [ on macOS
    • Unfoldunfolds the collapsed region at the cursor:
      • Ctrl + Shift + ] on Windows and Linux
      • ⌥ + ⌘ + ] on macOS
    • Fold Allfolds all regions in the editor:
      • Ctrl + (K => 0) (zero) on Windows and Linux
      • ⌘ + (K => 0) (zero) on macOS
    • Unfold Allunfolds all regions in the editor:
      • Ctrl + (K => J) on Windows and Linux
      • ⌘ + (K => J) on macOS