Return to site

Why Can't I Download Visual Studio On My Mac

broken image


Hello, I plan on buying a Macbook soon and will be taking a C programming class that I need to turn projects in on Visual Studio. Is there any way to download Visual Studio on Mac and be able to use C? If not, could I work on a C program on Xcode and transfer it into Visual Studio on my desktop and turn it in through there?

Installation

  1. Download Visual Studio Code for macOS.
  2. Open the browser's download list and locate the downloaded archive.
  3. Select the 'magnifying glass' icon to open the archive in Finder.
  4. Drag Visual Studio Code.app to the Applications folder, making it available in the macOS Launchpad.
  5. Add VS Code to your Dock by right-clicking on the icon to bring up the context menu and choosing Options, Keep in Dock.

Launching from the command line

You can also run VS Code from the terminal by typing 'code' after adding it to the path:

  1. In this video I will show you How to install Visual Studio Code on Mac. VS Code runs on Mac, Linux, and Windows. See Requirements for the supported versions.
  2. Download the Visual Studio installer, or run it if already installed. Click Modify (if already installed) or Install (for new installations) for your desired version of Visual Studio. On the Workloads tab, scroll to the Gaming section and select the Game development with Unity workload.
  • Launch VS Code.
  • Open the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.
  • Restart the terminal for the new $PATH value to take effect. You'll be able to type 'code .' in any folder to start editing files in that folder.

Note: If you still have the old code alias in your .bash_profile (or equivalent) from an early VS Code version, remove it and replace it by executing the Shell Command: Install 'code' command in PATH command.

Alternative manual instructions

Why Can

Instead of running the command above, you can manually add VS Code to your path, to do so run the following commands:

Start a new terminal to pick up your .bash_profile changes.

Note: The leading slash is required to prevent $PATH from expanding during the concatenation. Remove the leading slash if you want to run the export command directly in a terminal.

Note: Since zsh became the default shell in macOS Catalina, run the following commands to add VS Code to your path:

Touch Bar support

Out of the box VS Code adds actions to navigate in editor history as well as the full Debug tool bar to control the debugger on your Touch Bar:

Mojave privacy protections

After upgrading to macOS Mojave version, you may see dialogs saying 'Visual Studio Code would like to access your {calendar/contacts/photos}.' This is due to the new privacy protections in Mojave and is not specific to VS Code. The same dialogs may be displayed when running other applications as well. The dialog is shown once for each type of personal data and it is fine to choose Don't Allow since VS Code does not need access to those folders. You can read a more detailed explanation in this blog post.

Updates

VS Code ships monthly releases and supports auto-update when a new release is available. If you're prompted by VS Code, accept the newest update and it will get installed (you won't need to do anything else to get the latest bits).

Note: You can disable auto-update if you prefer to update VS Code on your own schedule.

Preferences menu

You can configure VS Code through settings, color themes, and custom keybindings and you will often see mention of the File > Preferences menu group. On a macOS, the Preferences menu group is under Code, not File.

Next steps

Once you have installed VS Code, these topics will help you learn more about VS Code:

  • Additional Components - Learn how to install Git, Node.js, TypeScript, and tools like Yeoman.
  • User Interface - A quick orientation around VS Code.
  • User/Workspace Settings - Learn how to configure VS Code to your preferences settings.

Common questions

Why do I see 'Visual Studio Code would like access to your calendar.'

If you are running macOS Mojave version, you may see dialogs saying 'Visual Studio Code would like to access your {calendar/contacts/photos}.' This is due to the new privacy protections in Mojave discussed above. It is fine to choose Don't Allow since VS Code does not need access to those folders.

VS Code fails to update

Why Can't I Download Visual Studio On My Mac Os

If VS Code doesn't update once it restarts, it might be set under quarantine by macOS. Follow the steps in this issue for resolution.

I've got a pro license of Visual Studio 2012, and decided to install it instead of my existing VS 2010 Express install.

Studio

Because I didn't actually have anything very important on my current install, I decided to uninstall my current VS 2010. When I originally installed it, I made sure it got installed on my E: drive. Macbook pro password recovery software download windows 10. To give you a bit of context on my setup, I've got an SSD as a boot drive (C:) and a specific drive (E:) which I use to install all my programs. I find it helps me backing up my stuff, as well as 'separating concerns', since my boot drive is only used for… well booting 🙂

I then set off about installing VS2012, and the first screen I was presented with was where you actually define where your install is going to go. So I just change the drive letter to be E: instead of C:.

Fxfactory for mac free download windows 10. To my surprise, this is what I saw in the next screen:

Visual

'No good!', it still wants to use over 2Gb of my C: drive, even though I told it to only use my E: drive.

After a bit of Googling, it it turns out more people have had this same problem, and there's even been a blog post on MSDN about it. While there's been some conversation on the comments in the blog post aforementioned, none one really seems to have come up with a decent (or at least temporarily decent) solution to the problem.

So here's a 'temporarily decent' solution to this problem:

Why Can

Instead of running the command above, you can manually add VS Code to your path, to do so run the following commands:

Start a new terminal to pick up your .bash_profile changes.

Note: The leading slash is required to prevent $PATH from expanding during the concatenation. Remove the leading slash if you want to run the export command directly in a terminal.

Note: Since zsh became the default shell in macOS Catalina, run the following commands to add VS Code to your path:

Touch Bar support

Out of the box VS Code adds actions to navigate in editor history as well as the full Debug tool bar to control the debugger on your Touch Bar:

Mojave privacy protections

After upgrading to macOS Mojave version, you may see dialogs saying 'Visual Studio Code would like to access your {calendar/contacts/photos}.' This is due to the new privacy protections in Mojave and is not specific to VS Code. The same dialogs may be displayed when running other applications as well. The dialog is shown once for each type of personal data and it is fine to choose Don't Allow since VS Code does not need access to those folders. You can read a more detailed explanation in this blog post.

Updates

VS Code ships monthly releases and supports auto-update when a new release is available. If you're prompted by VS Code, accept the newest update and it will get installed (you won't need to do anything else to get the latest bits).

Note: You can disable auto-update if you prefer to update VS Code on your own schedule.

Preferences menu

You can configure VS Code through settings, color themes, and custom keybindings and you will often see mention of the File > Preferences menu group. On a macOS, the Preferences menu group is under Code, not File.

Next steps

Once you have installed VS Code, these topics will help you learn more about VS Code:

  • Additional Components - Learn how to install Git, Node.js, TypeScript, and tools like Yeoman.
  • User Interface - A quick orientation around VS Code.
  • User/Workspace Settings - Learn how to configure VS Code to your preferences settings.

Common questions

Why do I see 'Visual Studio Code would like access to your calendar.'

If you are running macOS Mojave version, you may see dialogs saying 'Visual Studio Code would like to access your {calendar/contacts/photos}.' This is due to the new privacy protections in Mojave discussed above. It is fine to choose Don't Allow since VS Code does not need access to those folders.

VS Code fails to update

Why Can't I Download Visual Studio On My Mac Os

If VS Code doesn't update once it restarts, it might be set under quarantine by macOS. Follow the steps in this issue for resolution.

I've got a pro license of Visual Studio 2012, and decided to install it instead of my existing VS 2010 Express install.

Because I didn't actually have anything very important on my current install, I decided to uninstall my current VS 2010. When I originally installed it, I made sure it got installed on my E: drive. Macbook pro password recovery software download windows 10. To give you a bit of context on my setup, I've got an SSD as a boot drive (C:) and a specific drive (E:) which I use to install all my programs. I find it helps me backing up my stuff, as well as 'separating concerns', since my boot drive is only used for… well booting 🙂

I then set off about installing VS2012, and the first screen I was presented with was where you actually define where your install is going to go. So I just change the drive letter to be E: instead of C:.

Fxfactory for mac free download windows 10. To my surprise, this is what I saw in the next screen:

'No good!', it still wants to use over 2Gb of my C: drive, even though I told it to only use my E: drive.

After a bit of Googling, it it turns out more people have had this same problem, and there's even been a blog post on MSDN about it. While there's been some conversation on the comments in the blog post aforementioned, none one really seems to have come up with a decent (or at least temporarily decent) solution to the problem.

So here's a 'temporarily decent' solution to this problem:

Why Can't I Download Visual Studio On My Macbook

Simply create a SymLink from the folder where VS 'wants' to be installed, to the folder where 'you' want to install it. This way, you 'trick' the installer to think it's being installed on the system drive, but is is in reality installing it to the drive you defined on your symlink.

Think of it as a shortcut to a folder deeply nested within your file system. You can have it sitting on your desktop, but when you actually open it, you will find that the path to it is something like mydeeplynesteddirectory.

So in order to do that, all you will need to do is the following:

  1. Open command line as an administrator (you can type 'cmd' and right click on it to run as admin)
  2. Enter mklink /J 'C:Program Files (x86)Microsoft Visual Studio 11.0' 'E:Program Files (x86)Microsoft Visual Studio 11.0'
    1. Where the J flag indicates you're creating a directory junction (see more here)
    2. The first path is where VS is trying to install itself
    3. The second path is where you want it to be installed
  3. Carry on and let it install

You will now notice the whole of it (except for things it adds to the registry) will have been installed on your preferred drive.

Q & A

Q: Why are you calling your solution 'temporarily decent'? It seems perfect.

A: It turns out that when you install any updates to VS, they will end up in your system drive, since VS updates don't 'understand' symlinks, and in fact remove them.

Q: And you only say that now? What do I do then?

A: A comment added to this answer on StackOverflow seem to imply that you can do the update, and then merge your files manually by copying them into your other drive. You will need to re-create the symlink after that, but considering you don't get udpates every day, it's probably worth.

Q: Will this be a problem for ever?

A: By the looks of it, yes! If you read the blog post I linked above, MS seems to think that's the way to go now, and you should have bigger drives if you wanted to have to avoid this whole workaround.





broken image