Skip to content

Option to automatically open markdown in preview  #54776

Closed

Description

@abdhx

Add a setting markdown.defaultView to automatically open .md files in preview mode instead of editing mode.
This is so useful, because the most of time, I just want to read the .md files.

Activity

  1. vscodebot commented on Jul 21, 2018

    @vscodebot
  2. added
    markdown-ext
    on Jul 21, 2018
  3. added
    feature-request
    on Jul 23, 2018
  4. evanharmon1 commented on Aug 6, 2019

    @evanharmon1

    I definitely agree. This seems like a clear win to have an option for this.

  5. JudyLipinski commented on Aug 11, 2019

    @JudyLipinski

    We use VSCode to teach Web Dev and Python and love to use markdown files for instructions. It would be incredibly helpful to have an option like markdown.defaultView to help those who are a bit less technical be distracted by the edit mode.

  6. locked as off topic and limited conversation to collaborators on Oct 6, 2019
  7. mjbvz commented on Oct 6, 2019

    @mjbvz
    Contributor

    Locking as none of the comments are anything but fancy +1s

    If you are actually interested in working on this feature and have ideas on how to implement it, please let me know (just open a separate issue and reference this one)

  8. mjbvz commented on Nov 11, 2019

    @mjbvz
    Contributor

    I have checked in prototype that allows you to set the markdown preview as the default editor: #84520 We are looking for the community to drive the testing and polishing of this feature so that it can ship, so please follow up on #84520 if you wish to contribute

  9. mjbvz commented on Apr 6, 2022

    @mjbvz
    Contributor

    This has actually be possible for a while. To change this, you can configure the default editor for .md files (or whatever other markdown file extension you wish). Here's an example setting:

    "workbench.editorAssociations": {
    	"*.md": "vscode.markdown.preview.editor"
    }

    Use the reopen with command to switch back to the standard text editor

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

Metadata

Metadata

Labels

feature-requestmarkdown-ext

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions