-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Feature request: Set focus on an specific folder in explorer. #28905
Comments
@renatomattos2912 How about using the new multi-root/folder workspace feature to create a workspace with 2 folders? 1 the main parent folder, the other would be the folder you want to focus on. See https://code.visualstudio.com/updates/v1_14#_preview-multi-root-workspaces |
@ramya-rao-a sorry, i just see your response now. I will try this feature, thanks for your reply. |
Still would like to see this feature honestly, sounds awesome, especially when working in a multi-project repository.. the folder structure goes too deep just to get to |
Possibly the Workspace API could allow an extension to provide this...? |
This iteration we focus on issue grooming. This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
I'd like to see this issue reopened. I find that multi-root/folder workspaces struggle to hand js auto imports as well as having a single root with a |
Having swtiched to vscode recently, I was also looking for this feature, something like "right-click on the folder to focus the workspace on just those files". In the meantime, I noticed the breadcrumbs feature provides some of the same functionality: click the directory name in the breadcrumb, and you get a dropdown of just the files in that directory. Not quite what I'm hoping for, but better than nothing. |
Has anybody found a solution/addon for this? It is pity to see, that the feature is out of the scope. Workspaces are not quite helpful in the use case, @Aaron-Pool has also mentioned, - temporary hide away all folders around when working on some module/component. |
Being able to quickly switch between folders is a must have for WordPress development, where you might simultaneously be working on a theme and on 1 or more plugins. The most obvious way to achieve this seems the ability to pin folders, or create shortcuts to these folders. Actually @ramya-rao-a's workaround seems te be doing exactly this. So what I do now: Open my wp-root folder as a project. Then Click File > Add Folder to Workspace, and select my theme folder. Then repeat the same for any plugin folders. My workspace now looks like this:
Making changes in It's pretty simple, as you can see here: |
Unfortunately, this approach still plays havoc with typescript intellisense because there's no true "root" of the workspace to look for the |
I use vscode to open a "root project" with multiple git submodules in it. It's a pain having to re-open a new window for the plugins to load properly. Can we expect a solution in a foreseeable future ? |
It can also be implemented by using double-click in order to simulate entering a folder, like what is done in a system file browser (e.g. nautilus or windows explorer) and have back and up buttons shown after entering a folder. |
There's "perspectives" which has made it to the backlog: Here's hoping we get something like this sooner rather than later. It's a sorely missing productivity function. Large projects are just extremely painful right now. |
I've just found this little extension: https://marketplace.visualstudio.com/items?itemName=saekiraku.pin-up |
The Nuclide project used to have this feature called 'Working Sets' for Atom. I loved that, you could pre-create sets of folders (say I want to work on one service, or groups of services under a tag), and I could assign hotkeys to each one and switch through really quickly. Could we get something like that? |
Another good extension: https://marketplace.visualstudio.com/items?itemName=rslfrkndmrky.rsl-vsc-focused-folder |
This should come pre-installed with VS Code. It took me like 2-3 hours of search to find my way here. |
I don't get how this is still not a feature. Developers don't work on all files simultaneously and is annoying to have listed configuration, assets, etc. files in the explorer all the time. While working on some new feature or bug, we usually focus on specific files or folders. Hope this get released anytime soon.
This can do the workaround for a while, though one cannot use right-click extensions on the Pin tab, and when a new file is created in the Explorer on a pinned folder, there's no way to update the Pin tab more than unpin and pin again. |
One more https://marketplace.visualstudio.com/items?itemName=rslfrkndmrky.rsl-vsc-focused-folder |
I'd like a least a folder context menu item whose action would open a new vscode window with just that folder opened. |
Is possible to do something close to it using a plugin called project manager |
Thanks @renatomattos2912. I just installed Project Manager and it works great! |
Works like a charm, thank you! |
awesome ! This should built-in with VS Code |
it may be closed. Workspace is now working well |
Workspace allows including multiple directories/sub-projects in one view (the workspace), but does not enable focusing on a sub-project or sub-directory in the explorer view and for extensions. |
Dont know if this is still an issue, but I found an extension called: Focused Folder which works perfect for this! |
|
Link for lazy: https://marketplace.visualstudio.com/items?itemName=rhalaly.scope-to-this&ssr=false#overview |
This is a feature suggestion.
It will be great if i can mark an folder in explorer to be the only folder appearing visually, so all the other folders will be invisible until i toggle this behavior.
Example: i have a lot of folders in my project, but i want to focus on the "src/" folder for now, so i can click with the right button on this folder and set this to root and when i want to see all the folders again, i can toggle show folders.
I know that i can get this by opening the vscode inside this folder that i want, but this is not practical when i want to access files outside of this folder, so i want something that only affect the explorer without affecting the entire vscode behavior like terminal context and etc, it needs to be only something like toggling a display: none on the file explorer.
The text was updated successfully, but these errors were encountered: