Visual Studio Xcode



Work with Xcode projects from inside Visual Studio Code.

Feedback is highy appreciated! Let me know if this works for you? Are there any showstopping bugs? Any features missing?

Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications. Visual Studio dev tools & services make app development easy for any platform & language. Try our Mac & Windows code editor, IDE, or Azure DevOps for free.

Caveats

Visual studio xcode path
  • First release, my first non-trivial TypeScript/JavaScript program - expect bugs, problems, and non-idiomatic code.
  • Only useful for macOS apps at this point.
  • Managing the project (adding files, changing settings, etc.) has to be done using Xcode itself.

Features

  • Build/Clean/Debug/Run Xcode workspsaces from within vscode.
  • Switch between configurations (Debug/Release)
  • Debug directly from vscode - easily define debug configuration.
  • Status bar items that make it easy to build, debug, switch build and debug configurations.

macOS Example

The subdirectory examples/helloworld contains a working example. Open VScode there.

Alternatively, in a new directory:

  1. Create a new Xcode command line project, with the original name project.

  2. Create a new Xcode workspace named workspace in the same directory. Add the project to the workspace.

  3. Create a new scheme named build inside the workspace and add project to the scheme.

  4. Create a configuration as a file named .vscode/xcodebuild-tools.json:

  1. Use xcodebuild-tools command to build, debug, run, clean, switch build configuration, and switch debug configurations.

  2. Use the status bar to build, debug, switch configurations or kill the build.

iOS Example

The subdirectory examples/helloworld-ios contains a working example. Open VScode there.

Manual Storyboard (sample)

Alternatively, in a new directory:

  1. Create an iOS example similar to above, but for iOS.

  2. Install ios-sim using npm:

  1. Use a configuration file similar to the following one:
  1. Use xcodebuild-tools commands to build and run the project in the simulator.

Credits

Difference Between Visual Studio And Code

  • Heavily influenced by the great CMake-Tools extension.
  • Code derived from the basic extension generated by yo code.