I was just thinking that sometimes I avoid breaking functions in a file into multiple modules because I don’t want to deal with the hassle of switching files. One way to remove that hassle would be to have a way to view all the files in a folder in a single tab with each file appended to the list, so I could scroll through or search all of them in the same tab.

Does VS Code already have an extension like this? If not, is the VS Code extension system flexible enough to implement this feature?

  • davenull@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    I can’t help but would like to add that this seems like a really really cool idea. It could even be extended to support CTRL+F to search between all the open files, there’s a lot of cool possibilites. Just throwing this out here in case it doesn’t exist and someone feels motivated to make it.

    • towerful@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Yeh, this actually seems like a uniquely awesome way to view a folder.
      Would need to have obvious file break markers. And I dunno if it would make other tooling do too much (like, it’s supposed to work on 1 maybe 2 visible files at a time. Showing 10 at once might make it lag to hell.)

  • breadsmasher@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    Just asking because I don’t think I am grasping what you mean - how would you picture this new tab view? How would it differ from the file explorer tree view in vscode as it currently exists?

    edit. I think I got it actually - fileA fileB fileC are all split but in one folder. You can then open all 3 in a single tab as if they’re one file?

    • etler@programming.devOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      I’m imagining the different files in one scrollable view, so once you scroll past one file the next file will be right under it. Basically as if all the files were appended together to one file virtually, but still editable as separate files.