Nuclide provides an Outline View to allow for quick navigation of a code file. This can be particularly useful for lengthy files with many classes, functions, methods, etc.

Toggling

To toggle the Outline View panel, you can:

  • Press Option-O (Alt-O on Linux).
  • Go to the Nuclide | Outline View | Toggle menu.
  • Click on the Outline View button within the Nuclide toolbar.
  • Use the Try It button associated with the Outline View Quick Launch menu in the Nuclide Home tab.

Clicking on any entity in the Outline View will bring you to the line in Nuclide that represents the beginning of the definition for that entity. For example, clicking on function withDestinationPath in the outline view will bring you to line 44 in the file that defines that function.

Outline View currently supports Hack, PHP, Flow, JavaScript, Python, C++, JSON, and GraphQL files. If you have Outline View opened for a file that is not supported, you will see a message similar to “Outline view does not currently support…”

Requirements

In order for the Outline View to work correctly, the following are required for specific languages: