Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 647
kittygirl Avatar asked Oct 22 '25 18:10

kittygirl


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.

like image 79
tHeSiD Avatar answered Oct 26 '25 03:10

tHeSiD