# Is there a way to Preview a CSV file in VSCode programatically?

**URL:** <https://discourse.julialang.org/t/is-there-a-way-to-preview-a-csv-file-in-vscode-programatically/103029>\
**Category:** VS Code\
**Tags:** question\
**Created:** [August 21, 2023, 1:01pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-preview-a-csv-file-in-vscode-programatically/103029 "2023-08-21T13:01:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soldalma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/soldalma/32/29388_2.png) [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Post date:** [August 21, 2023, 1:01pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-preview-a-csv-file-in-vscode-programatically/103029/1 "2023-08-21T13:01:49Z")

</div>

My program saves a CSV file that I open through VSCode by going to the Explorer pane, right-clicking on the file, and choosing Open Preview on the menu that pops up.

Is there a way to do the same thing from inside my program, so that I do not have to do it manually?

---

<div class="post-metadata">

**Author:** ![Soldalma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/soldalma/32/29388_2.png) [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Post date:** [August 21, 2023, 1:12pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-preview-a-csv-file-in-vscode-programatically/103029/2 "2023-08-21T13:12:42Z")

</div>

Sorry. I figured it out. In case someone wants to know, it can be done like this:

```julia
Main.VSCodeServer.vscodedisplay(df)

```

where `df` is the dataframe.
