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

Mobile App Review: Amnesty SOS

A. INTRODUCTION In this post, I will review Amnesty International's mobile app for you on both Android and iOS platforms. Amnesty International has already been doing its own part for years successfully to: Stop violation of human rights  Protect people and communities who are in immediate danger Now it is your turn to do your part and  Join this great community by taking actions for human rights Speak out for people facing with unlawful, inhumane treatment Encourage friends and family to raise their voices for human rights Collect more signatures and amplify your impact  Share on social media Figure : Amnesty SOS App on Google Play Store Figure : Amnesty SOS App on iOS App Store Android App details are as follows: Version : 1.1 Released on : Feb 20, 2018 Developer e-mail : digitalcomms@amnesty.ca iOS App details are as follows: Version : 1.1.1 Released on : April 2017 Developer e-mail : digitalcomms@amnesty.ca B. ...

How to Record Screen of Your iPhone or Mac freely and easily?

There are a lot of fake apps on Appstore that you might waste your money just to record your screen. You give money buy you get nothing but a garbage. Although there are bunch of methods to record your screen, I will mention in this post the method which uses QuickTime Player. Here is how to record your screen: 1- Install QuickTime player (if you have not already) Download QuickTime player on your Mac. Use this  link  : If you have any trouble with installing QuickTime, have a look at  here for support : 2- Open QuickTime player. After you have installed QuickTime, you most probably find it in " Launchpad -> Other ". Or simply you can search it inside your Mac. 3- Connect your iPhone to your Mac with a lightning cable. To record screen of iPhone:  4- Click on "File -> New Movie Recording" 5- Click on the down arrow and select your connected iPhone. 6- Now your phone's screen is being displayed. You can st...

How to change Country/Region of App Store in iOS 10.0.2 on iPhone?

When you moved to any country other than your original country, you need to change the region/country settings of your iPhone/iPad so that you are able to download the apps specifically published for that country/region. 1- Open Settings App. 2- Tap on “iTunes & App Store”. 3- Tap on Apple ID: 4- Tap on “ View Apple ID ”. 5- Then sign in into your iTunes store either with your AppleID/Password or Touch ID . 6- Then, your iTunes account is opened as follows… Tap on " Country/Region" 7- Tap on “ Change Country or Region ”. 8- Select your current country or region from the list. 9- Then tap on “ Agree ” to agree with the Apple Media Services Terms and Conditions. 10- Tap again on “ Agree ” on the pop-up. 11- Now, Billing information on your account is displayed. Insert 3-digit security code at back of your credit card and tap on “ Next ” again. ...