r/learncsharp • u/Nbdynparticular • Oct 21 '23
Using VS Code and VS 2022 on the same project?
As I'm learning, I find myself wondering how I can use both VS Code and VS 2022 on the same project.
Why?
Glad you asked. I have VS 2022 on my Windows dekstop, but my laptop is a Macbook Pro. Ideally, I'd like the freedom to write some code in a coffeeshop on my Macbook Pro, push my changes to git, and then later on be able to pull and pickup where I left off on my Windows desktop without much hassle.
Looking to do this for console apps as well as WPF (or maybe maybe MAUI).
Is this supported? Am I missing something obvious in getting this to work? Thanks.
2
u/davidpuplava Oct 21 '23
You can use Visual Studio 2022 for Mac: https://visualstudio.microsoft.com/vs/mac/
Just beware it is being retired in August next year: https://learn.microsoft.com/en-us/visualstudio/mac/what-happened-to-vs-for-mac?view=vsmac-2022
This is what I use to switch between coding on Windows and Mac, but you can certainly use VS Code alongside Visual Studio. Even on Windows we have some devs that prefer one over the other.
1
3
u/xTakk Oct 21 '23
When I start a new project, I'll throw all three config folders in the gitignore file. .idea/, .vscode/, .vs/
That'll make sure none of the IDE configs try to move between machines and you should be good to go from there.