this post was submitted on 16 Sep 2023
12 points (100.0% liked)

VS Code

784 readers
1 users here now

founded 1 year ago
MODERATORS
 

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?

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

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?

[–] [email protected] 3 points 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.

[–] [email protected] 3 points 1 year ago (1 children)

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.

[–] [email protected] 1 points 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.)