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 Object-Oriented PHP Basics Understanding Classes Classes and Objects

How can I run the console in Visual Studio Code?

It doesn't seem to work. I am using the debug console.

2 Answers

Vehbi Oztomurcuk
Vehbi Oztomurcuk
4,283 Points

You can click "view" and then select "Integrated Terminal" or "Debug Console" or you can use the shortcut "shift+command+Y" on mac and "Ctrl+`" on windows.

You can view these lists for more shortcuts;

Mac: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf

Windows: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

Thanks Vehbi Oztomurcuk . I know how to open, but not how to use. When i type php filename.php in the console i get an error message.