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

PHP PHP Arrays and Control Structures PHP Conditionals Negation Operator

Do do you duplicate lines so fast?

Is there a shortcut for duplicating lines? I noticed how she is able to do this super fast. Thanks

2 Answers

Alex Forseth
Alex Forseth
8,017 Points

CMD + D on Mac ~ No need to highlight text you want to duplicate just leave your cursor on the line you want to duplicate below and hold cmd+d.

Sorry for not knowing the windows shortcut.

Hello,

It's CTRL + D on windows :)