Coder Social home page Coder Social logo

Comments (8)

tocsoft avatar tocsoft commented on June 7, 2024 2

sounds like an interesting idea... possibilities are quite interesting.

This makes me think of a workflow like this. Add a new command to the "Add" menu, when right clicking solution item, with a new something like 'Add file from GitHub'.

This then kicks in the following workflow.

  1. Show the repo list screen.

    image
  2. User selects a Repo and then is presented with a File explorer like view (obviously slightly more GitHub branded)
    image
  3. user can just add the file in one of 2 modes

    image
    1. Add - downloads from GitHub and adds it directly to the solution. (obviously the most easy)
    2. Add as link - makes sure there is a local submodule pointing to the selected repo and
      links to the file in there. (Adds in all the complexity of the submodule adding/update
      workflow first)
      1. if submodule doesn't exist prompt user to choose a folder to add the submodule to
        and download it.
      2. if the submodule does exists but it doesn't contain a file with the same sha then prompt to
        either update to a newer(latest) commit, or ask to download the latest into a different location.

This could also work nicely for an "add existing project from github" again following the submodule flow.

from visualstudio.

shiftkey avatar shiftkey commented on June 7, 2024

I'm interested in finding out what GitHub for Windows does that enables that to be be viewed in a text editor and then help add that to Visual Studio whether that by making it a part of this extension or by creating another one.

I can explain this bit - the URL you get when clicking "Open this file in GitHub for Windows" will contain the relative path to the file you clicked. So after cloning the repository GHfW just shells out to Windows to use whatever has been configured under the File Associations on the local machine.

from visualstudio.

codewithtyler avatar codewithtyler commented on June 7, 2024

@shiftkey So let's say we were able to browse GitHub files in Visual Studio. Would downloading the file to a temporary folder then opening it accomplish the same thing? Specifying of course that it be opened with Visual Studio (basically accomplishing the same task as right clicking on a file and saying Open with -> Visual Studio)

from visualstudio.

haacked avatar haacked commented on June 7, 2024

I would like to be able to browse code on GitHub from Visual Studio and then open that code file in Visual Studio.

What would this look like?

So let's say we were able to browse GitHub files in Visual Studio. Would downloading the file to a temporary folder then opening it accomplish the same thing?

Sure. If we implement something in Visual Studio, we can do whatever we want. We don't even need a temporary file since there are API calls we can make to get the contents of a file.

from visualstudio.

codewithtyler avatar codewithtyler commented on June 7, 2024

Well what can we do with the VS API? I'd imagine it would connect to GitHub and show the files in a tree view similar to Solution Explorer.

from visualstudio.

haacked avatar haacked commented on June 7, 2024

@RandomlyKnighted That's a possibility. But we need to design the experience for how we get there. How would I launch the ability to browse or search repositories? What would that look like? It's worth thinking through the whole experience and even mock it up using Balsamiq, Powerpoint, or even line drawings on a napkin. 😄

from visualstudio.

Naphier avatar Naphier commented on June 7, 2024

I'd love to see a feature like this. I have a GitHub repo with my commonly used scripts/tools. It would be awesome to be able to browse that repo from VS while in another project. Then pull the file into the current project. It'd also be awesome to maintain the repo link to that file if I want to make changes to it and commit it. And likewise if that file was changed in it's repo then I would be notified of an updated version.
I know all of this is a bit different from normal git usage, but it sure would be neat and useful!

from visualstudio.

shana avatar shana commented on June 7, 2024

/cc @donokuda for workflow ideas

from visualstudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.