How to review the outline of `.rmd` file in vs code?

Viewed 2155

enter image description here

I know vs code has ability to review ouline of markdown.
As to Rmarkdown with knitr,*.rmd files,how to review outline?

1 Answers

If you don't want to do install any extensions you can just simply go to the status bar and click on Plain Text and select Markdown from the menu that pops up and that will generate the outline treating the file as a Markdown file.

Language selection

If you want to make this change permanent across you workspace, add this to your settings.json

{
    "files.associations": {
    "*.rmd": "markdown",
  }
}

This is to tell VSCode to read all .rmd files as Markdown files and then it will be able to generate the outline.

Demo

Or you Could just install one of the extensions like R-Tools extension

This will parse your rmd file and generate an outline.

Related