Skip to content

Compiling Code

Compiling Code

Automatic Compilation

Compiling P programs is now super easy with Peasy!

Simply Save in VS Code editor and your project will be automatically compiled using the p compile command. Alternatively, you can press Ctrl + B or F5 to compile the current project.

Demo Video: How to compile code in Peasy?

Error Reporting

Peasy reports compilation errors in the Problems panel. If compiling a P project with Ctrl + B or F5 triggers errors, you can simply open the Problems panel in VS Code to view all compilation errors. You can jump to the error location by simply clicking the error.

Demo Video: Where to view compilation errors in Peasy?

Compiling Multiple Projects

When working in a directory with a single P project, Peasy automatically identifies the P project.

But what if there are multiple P projects in the same directory?

To select another P project, press Ctrl + L or F4. This will trigger a pop-up that shows all the available P projects in your current working directory. Simply click or select one of them to change the current P project!

Demo Video: How to compile multiple projects in Peasy?