Skip to content

Annotation markers shown incorrectly and disabling option hides editor side pane #24940

@jnsebgosselin

Description

@jnsebgosselin

Problem Description

Currently, annotation markers (for keywords like TODO, FIXME, XXX, etc.) are always displayed to the left of line numbers and in the scrollbar, regardless of whether the keyword appears at the start of a comment or elsewhere in the code.

Additionally, disabling the Annotations option in the preferences has unintended side effects:

  • It completely hides the left side panel in the Editor, which is also used to display code style warnings and errors.

  • The annotation markers in the scrollbar are still shown, even though annotations were disabled.

Image

Expected Behavior

  • Annotation markers should only be shown when the keyword appears at the start of a comment, as described in the setting description.

  • Disabling annotations should hide only annotation markers, while still keeping the left side panel for code style and error markers.

  • Disabling annotations should also remove annotation markers from the scrollbar.

Versions

  • Spyder version: 6.0.8 (standalone)
  • Python version: 3.11.13 64-bit
  • Qt version: 5.15.15
  • PyQt5 version: 5.15.11
  • Operating System: Windows-10-10.0.19045-SP0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions