Comments (8)
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.
- Show the repo list screen.
- User selects a Repo and then is presented with a File explorer like view (obviously slightly more GitHub branded)
- user can just add the file in one of 2 modes
- Add - downloads from GitHub and adds it directly to the solution. (obviously the most easy)
- 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)- if submodule doesn't exist prompt user to choose a folder to add the submodule to
and download it. - 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.
- if submodule doesn't exist prompt user to choose a folder to add the submodule to
This could also work nicely for an "add existing project from github" again following the submodule flow.
from visualstudio.
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.
@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.
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.
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.
@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.
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.
/cc @donokuda for workflow ideas
from visualstudio.
Related Issues (20)
- Unexpected problem
- Commit Changes Button is not Visible while adding .gitignore in My Main Branch, Please Look into this and provide necessary workaround!!
- Tailwind CSS not working on visual studios
- Failed to launch debug adapter - 17.6.0 Preview 1 - Blazor HOT 1
- Bug report
- {! Doctypehtml} HOT 1
- VS Community 2022 RUN and Compile functions aren't available
- A
- QuickWatch Doesn't Have "View" Button For StringBuilder (VS 2022)
- xaml live preivewer is mirrored
- VS 2022 Mac 17.5.4 cannot build project from external ssd
- Documentation re: reviewing github pull requests is out of date
- Slow run times
- Ft
- A repository named "Foo already exists for owner "MyGitHubUser" -- but no, it does not
- Activity 2
- My link
- Add an option/tool to convert selected members of a class to positional record
- New Here
- visual studio docker error: NU1301: Unable to > load the service index for source
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from visualstudio.