Skip to content

Viewing List Objects in VSCODE #1399

Description

@hjamil-md

When you use Rstudio you can view lists in beautiful way, as you can see each level as a table.

7uvh7j

but in vscode, the lists are hard to navigate as they show in scattered way.

image

I hope you can add this feature to the extension!

Activity

  1. jimenamateo commented on Aug 28, 2023

    @jimenamateo

    Hi,

    Yes, I also have found this problem.
    Viewing lists is the only thing I prefer from RStudio, it's so much more comfortable. I work with phylogenies and my lists are quite big, VScode's viewer expands them automatically and they take forever...
    I would love it if lists opened in a collapsed form at least, and it would be great to see more information about them like @Zahrawi pointed out!

  2. werkstattcodes commented on Aug 31, 2023

    @werkstattcodes

    @jimenamateo @Zahrawi
    Just as a comment - I am using the jsonedit function of the listviewer package. It's quite convenient and IMHO serves the purpose you've been looking for.

    `library(tidyverse)
    library(listviewer)

    df_l <- mtcars %>%
    nest(,.by=cyl)

    listviewer::jsonedit(df_l$data)
    `

  3. jimenamateo commented on Oct 26, 2023

    @jimenamateo

    Thank you @werkstattcodes, your jsonedit function shows the list directly collapsed, so I don't have to collapse it myself, but it is still a very uncomfortable way of seeing the information.

    It would be great to have every element as a table, like the gif @datasciencemedicine shared!

  4. m4x74 commented on Nov 7, 2023

    @m4x74

    Totally agree! For me, this is the major downside of using R in VS Code instead of RStudio and the only reason I still switch back to RStudio from time to time. There are some projects that heavily depend on large lists which are a pain in the ass to work on in VS Code. Also experienced VS Code crashing when trying to view some of these lists.

  5. romancardenas commented on Nov 16, 2023

    @romancardenas

    Same here!

    It is very difficult to work with large nested lists (compared to RStudio). If you could provide a mechanism to represent lists following RStudio's fashion it would be great 😀

  6. castellco commented on Apr 18, 2024

    @castellco

    Hello. I also join this request. I am working with a list composed of data frames and can't view anything when I run View().
    image
    However, in Rstudio it works fine.

  7. aleortiz-uchicago commented on May 8, 2026

    @aleortiz-uchicago

    Here to join @castellco, as I have the exact same issue!

  8. modified the milestones: 3.0.0, 3.x on Sep 19, 2026
  9. Fred-Wu commented on Sep 20, 2026

    @Fred-Wu
    Contributor

    This feature should be added in #1741 after the v3.0 release, allowing more time for polishing and testing.

  10. modified the milestone: 3.x on Sep 21, 2026
  11. modified the milestones: 3.x, 3.1.0 on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions