-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure Explorer to show and distinguish generated/derived/related files #15370
Comments
Curious if you also exclude generated files in |
Following up. Has there been any discussion on this feature? |
@isidorn I see you moved this to backlog. Any updates on this? I came over to VS Code from Atom. I love VS Code but this is a feature I really miss from Atom. Thanks! |
Same here, would really appreciate having the files dimmed in some manner. |
+1 |
1 similar comment
+1 |
An example that comes to mind: In C# projects, resource files and XAML files often have auto-generated .cs files associated with them. Visual Studio's Solution Explorer visualizes this relationship by nesting the generated files under their parent source file. I often have closely related files in my TypeScript projects, and I'd love to somehow inform VS Code that my files have this kind of relationship. |
+1 |
+1 |
My use case is that I have |
In my case I have Unity project and I develop shaders. Often I need to look for some implementation in standard shaders pack provided with each Unity version. I keep this pack in ignored folder because it is needed only for me but not for other team members and I can't find anything within these files while they are ignored. As a workaround I temporary enable the folder in .gitignore by commenting it. But it is not convenient. |
One interesting work around I found is that in VsCode's file browser, if you right click and create the file or directory you need (ex: right click -> create file -> .gitignore), it will show up. Not the best solution especially if things are nested but gives a quick and dirty way to do it. |
Same here. Using generated files that I want to see in my VS Code project, but not commit to git repository. Something like |
👍 |
I also want this but I don't know how to implement it exactly. Obviously most of the time I don't want search to be polluted with |
This is really cumbersome. I routinely alt tab to Sublime Text to open If that is any help personally I don't care if the files don't show. If I can at least open them with the fuzzy find command palette. Possible implementation Alternatively , how about adding a a toggle in the Explorer view (top right, "..." menu), to "show ignored files". When it shows, the command palette would also allow to browse the files. This solution isn't ideal since the node_modules would also show... then maybe as others suggested I would also add some kind of |
Hello all, I recently took ownership of this ticket and I'm wondering if there is any more work needed here now that files ignored by git are shown greyed out, yet still visible in the explorer and able to be edited. There are a couple open tickets regarding related functionality:
If there is more to be done for this ticket please give a concrete example of the missing functionality, otherwise I will close this out. |
@JacksonKearl If you look at the title and the original comment, this isn't just about showing or hiding generated/derived files. This is also about indicating files that are related but both still source files that need to be committed, such as .cs code-behind files for .xaml files. Git ignored files doesn't really apply here. |
The API our built in Git extension uses to mark ignored files is available to extensions-at-large to implement their own decorations. This is done via the FileDecorationProvider interface. The Git extension implements these decorations like so: vscode/extensions/git/src/decorationProvider.ts Lines 14 to 85 in d04f317
This is a bit more involved than you'd need for the basic cases, but it should provide a good indication of how to implement something like this. |
Closing this issue as Feel free to create follow up issues for matters which can not be tackled by an extension. |
VS Code lets you exclude files and folders from the Explorer with the
files.exclude
setting. This is useful for hiding generated or ignored files while you're working. Sometimes, however, it's useful to see if your workflow is generating the expected files and folders.I'd like a feature that lets me configure rules for a new setting, perhaps something like
files.generated
orfiles.derived
. Files and folders that match a rule would appear "faded" or "grayed out" in the Explorer, indicating that they are distinct from the source code. VS Code should also warn me before directly editing a "generated/derived" file, since I should be editing the source file it came from. Another setting could toggle this feature, determining whether generated/derived files are treated the same way excluded files are.Alternatively, this feature could be tied into the existing
files.exclude
setting by adding the above-mentioned setting to toggle how excluded files are treated.The text was updated successfully, but these errors were encountered: