Skip to main content

Xcode vs Visual Studio - Mostly Used Feature Comparison

In this post, I will try demonstrate mostly used menus and functions of the most famous two Integrated Development Environments (IDE) of Microsoft and Apple... namely Visual Studio and Xcode respectively. Versions of the IDEs used in this post is Microsoft Visual Studio 2015 and Xcode 8.2.1. What you will find here is mostly used features like Auto Indent, Comment out, Uncomment, Debugging shortcuts, Attaching to a process etc. in a comparative manner. In other words, these features are demonstrated by using both Xcode and Visual Studio one by one.

If you have already been using one of these IDEs, you will switch and adapt to the other IDE easily thanks to this article.





1- Auto Indent

Xcode:
  • Select the text
  • Right click on the selected text
  • Click on "Structure -> Re-Indent". (Control + I)



VS:

  • Select the text
  • Click on "Edit -> Advanced -> Format Selection"




  • If you want to Auto-Indent all document (not only small portion of it), click on "Edit -> Advanced -> Format Document"




2- Comment out

Xcode:


  • Select the text
  • Click from the top menu "Editor -> Structure -> Comment Selection"





VS:

  • Select the code portion to be commented out
  • [Using toolbar icon] Click on the shown button on toolbar as shown in the below figure




OR!!
  • [Using menu options] "Edit -> Advanced -> Comment Selection"










3- Uncomment Selected Lines

XCode:
  • Select the code portion to be uncommented out
  • Click on "Editor -> Structure -> Uncomment Selection"





VS:


  • Select the code portion to be uncommented out
  • [Using toolbar icon] Click on the shown button on toolbar as shown in the below figure



  • [Using menu options] Click on "Edit -> Advanced -> Uncomment Selection"









4- Go to Definition of a Variable/Function/Property

Xcode:

Right click on the variable/function/property and click on "Jump to Definition" in the menu.



VS:

Right click on the variable/function/property and click on "Go to Definition" in the menu.









5- Navigating Back and Forward between documents

Xcode:

Use highlighted navigation buttons (left and right arrows) to navigate in files back and forward.




VS:

Use highlighted navigation buttons (left and right arrows) to navigate in files back and forward.






6- Run

Xcode:

  • [Using menu options] "Product -> Run




  • [Using toolbar icon]   Click on the highlighted button.






VS:

  • [Using menu options] "Debug -> Start Debugging"




  • [Using toolbar icon] Click on the highlighted button "Start







7- Debugging Shortcuts

Xcode:

  • Start Debugging (Run): Command + R
  • Step Over: F6
  • Step Into: F7
  • Step Out: F8
  • Toggle breakpoint: Command + \
  • Build: Command + B



VS:

  • Start Debugging : F5
  • Step Over: F10
  • Step Into: F11
  • Step Out: 
  • Toggle breakpoint: F9
  • Build Solution: F6



8- Attaching to a Process

Xcode:
  • Click on "Debug -> Attach to Process
  • Select the process that you want to attach. 





VS:
  • Click on "Debug -> Attach to Process..."
  • Select the process you want to attach and then click to "Attach"







Comments

Popular posts from this blog

Star Wars ASCIImation with Python - Windows

In this post, we'll watch a Star Wars movie in ASCII format. The only thing we need for this demo is Python-installed PC and internet connection. Figure : Screenshots from Python Command line while Star Wars is being streamed All credits gained in this demo will go to " blinkenlights.nl " [2] website, which broadcasts this ASCII movie using Telnet protocol on Port 23, and Python which makes socket implementation very easy for us. No authentication is needed for this broadcast. Anyone who is able to create a TCP socket and listens  blinkenlights.nl  on port 23 would be able to get this stream and display on their Python command line. CODE My main source for Python source code is [1]. What  code below does is simply importing Python "socket" library, create a socket, use " towel.blinkenlights.nl " address variable to create connection, receive data from socket and display it. While typing (copy/paste) code, be careful about indentatio...

Automatic Cover Letter Generator & Job Application Tracker & Active Contact List Manager (3 in 1)

In this post, I will mention about my current personal project that I have been using to manage and organize my job application process. Name of this project is " Automatic Cover Letter Generator & Job Application Tracker & Active Contact List Manger (3 in 1) ". Automatic Cover Letter Generator (ACLG) part automatically generates Cover Letters, Job Application Tracker (JAT) part helps me out track and organize my job applications and Active Contact List Manager (ACLM) part helps me build my own customized contact list. All of the three parts are good helpers for any job seeker.      MOTIVATION 1- Automatic Cover Letter Generator As a widely accepted analogy, a resume is like an ambassador to your potential  employer; a cover letter is like a bridge between your resume and the employer to introduce you and your resume. As a matter of fact, your cover letter is your very first contact with your potential employer. Knowing the importanc...

How to setup MongoDB tools to test/develop applications in C#?

In this article, I will be mentioning about how to install MongoDB infrastructure to develop any application in C#. After you have read this article, you will be ready to develop C#-MongoDB applications by following the below instructions step by step. Versions of tools used in this demo: Visual Studio 2010 .NET 4.0 MongoDB C#/.NET driver Version 1.11.0 MongoDB 3.4.0 Robomongo 0.9.0 1- Download MongoDB To download latest version of MongoDB, click here . Below page is opened. According to your Operating System, select MongoDB version and click to " DOWNLOAD ". After downloading, go ahead and install MongoDB. 2- Download RoboMongo Click  here  to download latest version of RoboMongo. As December 2016, latest version of RobomMongo is 0.9.0. To download the latest version, click " Download " button. If you want to download previous versions, click on " Download previous version " After that, select the OS and download RoboMon...