Datalore 2023.5 Help

Code menu

Located under the Main menu, the Code menu offers a variety of actions on your code.

Menu item

Description

Quick fixes...

Opens a popup with quick-fix suggestions for the selected code.

Refactor

Allows to rename the selected object.

Reformat code

  • Orders all the attributes.

  • Removes extra spaces/tabs and arranges code lines in a proper indented format.

Optimize imports

  • Sorts imports statements.

  • Removes unused imports from the notebook or the selected code.

Go to declaration

Navigates from the selected variable, field, method, or any other symbol to its declaration.

Parameter info

Shows the names of parameters in the selected code in a popup.

Show documentation

Shows a brief reference regarding the selected object.

Line

Available actions:

  • Duplicate line pastes a copy of the selected code next to the selection.

  • Toggle line comments comments out the selected code.

  • Move line up/down moves the selected code one line up or down.

  • Copy line up/down pastes a copy of the selected code above or below the selection.

Selection

Available actions:

  • Expand selection expands the code selection to the next meaningful code segment.

  • Shrink selection shrinks the code selection to the next meaningful code segment.

Last modified: 14 July 2022