It would be great to have a subtle visual difference for RMarkdown code chunks (e.g. light gray) as in RStudio.
We may need to take a look at how vscode-python does code chunk decoration demonstrated at https://code.visualstudio.com/docs/python/jupyter-support-py. We could also implement some CodeLens provider that allows users to run code chunk in different ways.

We may take a look at how these UI are done in https://github.com/microsoft/vscode-python/tree/master/src/datascience-ui.
VSCode鈥檚 Notebook implementation is progressing: https://github.com/microsoft/vscode/issues/95154 I think it will add a lot of the features we want.
Hey @andycraig & @renkun-ken just to say that I think it would be greatly appreciated if it were possible to focus on just getting a subtle background highlight in place before looking into anything more complex. Currently the lack of a background makes using markdown quite painful as its very hard to visually tell a part code from text. Would be great to get some basic essentials in place before diving deep into more powerful features !
@andycraig Do you have any idea how to add visual elements to the editor? I haven't got time to go through the extension API at the moment.
Looks like the files listed at https://github.com/microsoft/vscode-python/search?q=addCellLine&unscoped_q=addCellLine are essential to visualize cells.
I played with the decoration api and it works:
async function decorateRmd() {
let ranges = [];
ranges.push(window.activeTextEditor.selection);
const dec = window.createTextEditorDecorationType({
backgroundColor: "gray",
});
window.activeTextEditor.setDecorations(dec, ranges);
}

I'll take a closer look at this so that we could add a box with background color to Rmd code chunks as proposed.
Thanks @renkun-ken for looking into this, Just to say if you can get this working it would be a huge help to working with Rmd files :)
Closed by #429. Thanks again @renkun-ken!
Most helpful comment
I played with the decoration api and it works:
I'll take a closer look at this so that we could add a box with background color to Rmd code chunks as proposed.