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! While you're at it, check out some resources Treehouse students have shared here.

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

JavaScript

A simple comment question:

What's the shortcut to comment out multiline highlighted code with "//" as done in this vid?

Julian French
Julian French
3,257 Points

Mac: command + / Windows: (Ctrl or Windows) + /

I'm a mac user so I'm not 100% on which of the windows buttons works but just try either and you'll get it!

Hope this helps.

1 Answer

Steven Parker
Steven Parker
230,274 Points

For Wndows, it's   CTRL + /   for commenting.

And for indenting use   CTRL + ]   to indent in and   CTRL + [   to un-indent.