I am working with Angular 2. The main project folder contains "./src/app" where most of the editing happens.
It is a bit cumbersome to always navigate down to this folder (after collapsing the folder structure, which happens often.).
Is there a way to "Scope to This" (just as in Visual Studio 2012+ Solution Explorer)?
Visual Studio 2012 and later versions provide the "Scope To This" option. Using this option, we can select any project and then only this project will be visible in Solution Explorer. You can select a particular project or a folder from Solution Explorer.
VS Code provides two powerful commands to navigate in and across files with easy-to-use key bindings. Hold Ctrl and press Tab to view a list of all files open in an editor group. To open one of these files, use Tab again to pick the file you want to navigate to, then release Ctrl to open it.
In solution you can select particular project/folder/file and right click and click on “Scope to this” Menu. It will scope your solution explorer to that particular item. Now once you click on “Scope to this” It will scope your solution explorer to that particular item only.
Go To Line dialog box To access this dialog box, open a document for editing, and then select Edit > Go To > Go To Line or press Ctrl+G.
There is a feature request for this in the vscode github project: https://github.com/Microsoft/vscode/issues/41860.
But in the mean time you can use this: https://marketplace.visualstudio.com/items?itemName=chrisdias.vscode-opennewinstance
the only problem is that you'll have two vscode windows open or a single one and you have to re-open the parent folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With