DataGrip 2024.1 Help

Sticky lines

The sticky lines (or sticky scroll) feature enhances your coding experience by maintaining the visibility of parent statement as you scroll through the file, offering immediate context to your code. You can also promptly navigate through the code by clicking a sticky line.

You can also click any of the sticky lines to scroll the editor to the corresponding statement.

DataGrip: Sticky lines in the editor

By default, the Show sticky lines feature is enabled.

Disable sticky lines

  • Right-click the sticky lines in the editor and click Disable Sticky Lines.

    Disable Sticky Lines
  • Right-click the gutter, select Appearance, and then deselect Show Sticky Lines.

    Disable sticky lines from the gutter
  • Press Ctrl+Alt+S to open the IDE settings and then select Editor | General | Appearance. Clear the Show sticky lines while scrolling checkbox.

By default, the number of sticky lines is limited to 5. To increase or decrease the number of sticky lines, use the corresponding field next to the Show sticky lines while scrolling option on the Editor | General | Appearance page of the IDE settingsĀ  Ctrl+Alt+S.

Last modified: 09 April 2024