Skip to content

Toggle between default and custom editors #86504

Closed

Description

@sverg1

Background

This is a subtask of #84520 involving a keybinding that toggles between the default editor of a file and its custom editor (if applicable). The goal is to add flexibility between different view modes without having to force views such as in the example below.

Example

Pertaining to the aforementioned parent issue in particular, one can force the custom Markdown preview mode by adding the following experimental setup to settings.json:

"workbench.experimental.editorAssociations": [
    {
        "viewType": "vscode.markdown.preview.editor",
        "filenamePattern": "*.md"
    }
]

Save-to-Preview

Using another keybinding, the user can save the file and switch to the custom editor all in one command. For example, saving in a Markdown file may automatically switch to its preview mode so that the user can see the final look of the file with each edit.

Activity

  1. vscodebot commented on Dec 7, 2019

    @vscodebot

    (Experimental duplicate detection)
    Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

  2. added
    markdown-ext
    on Dec 7, 2019
  3. added
    help wanted
    on Dec 7, 2019
  4. added
    verification-needed
    on Dec 10, 2019
  5. mjbvz commented on Dec 10, 2019

    @mjbvz
    Contributor

    This ended up being implemented as a single: editor.action.customEditor.toggle command

  6. locked and limited conversation to collaborators on Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

help wantedmarkdown-extverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions