Skip to content

Open in read-only by default #2451

Closed as duplicate
Closed as duplicate

Description

@HawkingX

Describe your feature request

Open existing md files in read-only mode by default. There could be an option in settings to control the default behaviour.

What problem does this feature solve? [optional]

For exisisting md files, most of the time people would open them for reading and searching for information, not to edit them. Open in read-only mode helps prevent accidental change to the content.

Additional context [optional]

Activity

  1. added
    🪲 pri/low
    🦄 feature request
    on Jan 17, 2022
  2. marisks commented on May 6, 2026

    @marisks

    Why is this low priority? Read-only is an essential feature. Most of the time, we are reading files. Now it is quite annoying that you accidentally edit open documents.

  3. ExQueueSee commented on Aug 12, 2026

    @ExQueueSee

    I am actually baffled by how this is still an open feature request. I think I saw a couple more duplicates as well. I don't think it is a difficult to add feature. Looking forward to future updates.

  4. Jocs commented on Sep 22, 2026

    @Jocs
    Member

    Closing as a duplicate of #3688, which tracks the read-only / view-only mode.

    "Open in read-only by default" is a preference on that same mode — you cannot ship the preference without the mode, and both land in one change. #3688 now carries a contributor's full design proposal that covers your ask explicitly: a per-tab toggle in the View menu, an "Open files in read-only mode" preference, and setReadOnly() in the editor engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 pri/low🦄 feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions