github / VisualStudio

GitHub Extension for Visual Studio
https://visualstudio.github.com
MIT License
2.38k stars 1.2k forks source link

Support source controll explorer for git. #10

Open Patrickkk opened 9 years ago

Patrickkk commented 9 years ago

It would be great if we could explore our git repositories from source controll explorer (or something simmilar) so we dont have to leave the IDE. We can work from file explorer, but it doesnt feel like an IDE when switching.

haacked commented 9 years ago

@Patrickkk Thanks for the suggestion. Which git repositories do you want to explore? The ones on GitHub or the ones you have cloned locally?

codewithtyler commented 9 years ago

Personally I'd like to be able to explore the ones on GitHub.

haacked commented 9 years ago

@RandomlyKnighted Interesting. For what purpose?

codewithtyler commented 9 years ago

Mostly for productivity. There are times when I'm working across multiple branches and need to quickly reference another class. By being able to browse and pull that class up in the IDE I could get a side by side comparison without leaving the IDE.

haacked commented 9 years ago

@RandomlyKnighted ah! So if I understand correctly, you're not interested in just browsing the list of repositories. You want to be able to navigate code on GitHub from Visual Studio and open that code file in Visual Studio?

That feels a little out of scope for what we want to do right now. However, there's something close to this today.

If you go to github.com and find the file you want to look at, for example, https://github.com/octokit/octokit.net/blob/master/Octokit/Http/Connection.cs

814

There's a button to open it in GitHub for Windows. However, what it really does is open the file in your default editor for that file type. So you could change that to Visual Studio. Then clicking that button would open that one file in Visual Studio.

However, that requires that you also have GitHub for Windows installed for the time being because Visual Studio doesn't yet support that specific scenario.

codewithtyler commented 9 years ago

What would it take for Visual Studio to support that scenario? If I know what needs to be done I can look into making an extension for that.

haacked commented 9 years ago

@RandomlyKnighted not sure. Why don't you open a new issue. Maybe put together some mock-ups so we can all better understand the idea. Then we can talk through the user experience and implementation. Maybe it does belong in this extension. Maybe it should be a different one.

Patrickkk commented 9 years ago

@Haacked I would like to browse my local repositories via a source control explorer like view. So i dont have to leave visual studio for anything. It would be nice to be able to open a piece of code from another project without having to open the solution (in a second visual studio instance).

tocsoft commented 8 years ago

this could work as a simple extension of the workflow I've suggested in the comments of #11 but instead of adding the file to the existing project it would be an option added to the File > Open menu image

Basically add an Open file from GitHub command, this would follow this flow

  1. Click Open file from GitHub
  2. Select repo
    image
  3. Select a file from a GitHub branded open file dialog
    image
  4. Download the contents via the api (if it doesn't already exist in a local repo?) and open file in the editor.