Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Objective-C Basics (Retired) Functional Programming in C Functions

3,174 Points

What is the short-cut key to 'comment out' lines of code at once?

In this video tutorial it show to comment out lines of code at once, how to-do that? Thanks

4 Answers

Command + / should do the trick.

Thomas Tesla
Thomas Tesla
3,205 Points
  1. Select all the required lines
  2. Command + /
Josh Carter
Josh Carter
5,737 Points
  • Ctrl + / for Windows
  • Command + / for Mac