-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
File Nesting #6328
Comments
fyi @bpasero |
The most ideal scenario for this is that anything that starts with the same text as a parent file, minus the extension gets nested, like this;
|
No plans at the moment. Closing until we reconsider this. |
This is important feature for large projects. I'm using asp.net vNext for Angular project and now I've following structure automatically (by naming):
In VS Code Explorer I got:
Creating folders for each component is bad solution for angular project (you will need to change references). We need this feature to move to VS Code. |
Agree, at least ts + js + map files (for instance like webstorm does) |
It would be great to have file nesting for ts + js + map + style. Currently we are hiding the .js and .map files which makes checking them an annoyance. Even with just ts + css, the sidebar still feels bloated. |
Agree I wish file nesting like this (especially for ng2) Html |
Please reconsider this! This is such an important issue. Theres so many cases where generated files just clutter the workspace. Typescript! Typescript which you use as well! is a prime example. Or LESS/SASS -> css. Or Jade -> Html |
There is the option to conditionally hide the generated files. For example:
This same principal could be applied to your css and map files. |
And i am using that option. The problem arises when i want to see the For some reason most other editors deemed this feature useful enough to I would like to note that this is really not a complicated feature. Im On Sunday, September 25, 2016, Andrew Sheehan notifications@github.com
|
+1 |
any extension that may do the job? |
Why is this closed? It's not implemented and would be a great feature. |
Maybe because they need a reason for people to use the real visual studio :-) |
This should have not been closed, reopening. Though there might exist duplicates meanwhile. |
@stevencl @chrisdias @seanmcbreen @egamma fyi we need some PM steering and guiding here if we want to turn the file explorer into a logical view. An initial PR was created by @playerx in #13754 My 2 cents at the moment: we should think about a solution for the scenarios our users want to solve and my feeling is that only supporting to show similar files in the same level below a root file is not enough. People may want something powerful as the solution explorer in VS. |
@bpasero, my apologies, but question you asked is not correct. there are two different kind of features: N1. Turn the file explorer into a logical view N2. Give file explorer support to show real files with more elegant way and give developers ability to enable this feature, example: Feature N1 and Feature N2 are not the same, it's very important part here, they don't cover each other. Thanks |
@playerx I brought up the solution explorer because the description of this issue a reference to Visual Studio 2015 is made and to my knowledge there is only the solution explorer. Independent from VS, our own project is putting all generated MAP and JS files into a To me, nesting is not about grouping files with the same extension together, it is about showing files together that logically belong together (aka "derived resources"). Does that make sense? |
@playerx N2 looks much better. For the angular 2 cli users, this should not require that naming convention. Maybe there could be some configurable pattern like in the hide files configuration. Angular2 cli creates files like this: my.component.ts |
@mbeckenbach good example, thanks @bpasero nesting generated files, under TS files is great example, thanks I want to ask everyone, let's put every possible practical example here (not theoretical please), that we would use in every day life and let's make solution based on that examples. Let's the question be: @bpasero okey? I'm still trying not to mix Feature N1 and Feature N2. |
@JacksonKearl looks like to recording is broken |
I don't want this to overshadow the fact that I'm very pleased and happy to see that the team behind VSCode is trying to deliver this feature. I do have some critical feedback about this feature. Is opening an issue really the best way to discuss this at length? I think issues are not the appropriate place to host discussions on feature sets. Let me know where you want my feedback to go and I'll make sure it gets there. Perhaps the team could open up the discussions tab? |
First of all, this issue predates discussions by many many years. I'm guessing you didn't see that the original issue was created on May 12, 2016. Honestly, next time you make an attempt at micro-managing someone else's project, maybe do your research first. |
Dear favna, This is as polite as I will be with you. Perhaps English isn't your first language. Perhaps you have lost a loved one in the past 2 years, you have my condolences as many of us have. I have no idea what's going on in your life to be a complete d-bag to me, but I'll entertain you with one cordial response.
Also for your reference, here are some of the many conversations I've tried to have on this topic. I apologize that I haven't put these in chronological order for you.
For reference, so you know that I'm not lying to you again I'm going to quote myself. You should be familiar with what I wrote since you too quoted it in your mean & aggravated reply: "Perhaps the team could open up the discussions tab?"
Yes, I got this from Jackson's message above, in which I was replying to. I wanted to know if I should open up senseless amounts of issues when I don't know the intent, the design architecture, and the purpose driving the team. It's more of a discussion item. Discussions are (relatively) new to GitHub. Our lives, our code, and our processes are not immutable. Change is allowed. Discussions are allowed. Questions are allowed. Even your unbridled hostility towards a stranger is allowed.
Well I strongly suggest something changes. The team behind Visual Studio Code doesn't appear to work closely with the Visual Studio team. The team behind Visual Studio Code doesn't appear to work closely with the .NET Core team. That's why I came here, to be proactive, to help share some thoughts and opinions as somebody who uses a Microsoft stack of technologies across web, mobile, and mixed reality. I would think my opinion has some value to the team. Example: There's already a schema available to us in the open source, cross platform, .NET Core framework for defining nesting rules. I think it would be nice for compatibility. Also if VSCode could see that I have the rules defined already in the solution.
I was simply asking a question and proposing we turn on discussions for long winded issues like this. That's fine if you don't like my suggestion. I don't know what favna is going on about, but I don't think for a moment I was trying to dictate anything much less run somebody else's open source project. |
@markadrake Yes, please open issues to provide feedback. The number of participants in this thread makes it inefficient for discussing finer details. Please do link to this issue in any new issues created, so this issue's timeline can provide an index of ongoing/resolved side discussions for interested parties, without spamming every participant. |
would you care to give an example of how it works ? |
never mind i figured it out , thank you :) |
Just set:
|
is there any API for language server to nest file? |
@heartacker no, though you can configure that in your settings with something like: "explorer.experimental.fileNesting.patterns": {
"*.cpp": "$(capture).h",
"*.xaml": "$(capture).xaml.cs"
} Alternatively, Closing this out as the feature is released and will be available in the next stable release (in around 1 week). Please do continue to provide feedback in new issues, I'll remove this from |
So good to hear this feature implemented, ❤️ |
Wouldn't it be more UX-friendly if nested files will move with the parent one when I change the location of the parent file? It would be the same experience when I change the folder's location, including its content. |
@davidgabrichidze looks like great request, however I think it's better to create new issue for it instead of piling on 6 years old closed issue. |
@IllusionMH Yes, indeed, good idea. I've created one #143632 |
Is there any way for custom file icons to indicate the nesting besides showing the arrows (which many hide in favor of custom folder icons)? |
@selrond looking into that this iteration, likely going to force arrows to show for nests even if they don't for folders. |
Is there any possible chance we might see File Nesting in Visual Studio Code the same way it works in Visual Studio 2015? It was really convenient and helpful. I would adore such a feature!
The text was updated successfully, but these errors were encountered: