FEATURED APP
Code Like a Pro
CodeRunner 4
Programming Editor & IDE
If you’re new to programming, CodeRunner is a terrific way to get started. This lightweight yet powerful editor lets you run and debug code for more than two dozen languages within a single editing window. It’s perfect for creating a quick prototype, building out a website, or practicing your newfound coding skills.
Here’s a handful of CodeRunner tips to help you on your way:
Complete your code
Like other editors, CodeRunner automatically completes common code strings as you type, but you’re not limited to its first suggestion. Press Escape to cycle through other options.
Select and edit with precision
Need to find multiple—or only certain—instances of a particular string? Select that text, then press Command-E or Command-Shift-E to select or skip each subsequent instance, respectively.
Here’s the handiest part: Edit any of those highlighted instances, and the change is made to all of them. Or choose Text > Surround Selection With to add custom characters around each instance—for example, to comment out a command so it doesn’t run.
Check a reference
Can’t remember the difference between getpwent and getpwnam? Select a term and tap your trackpad with three fingers (or press Command-I) to have CodeRunner look it up in the documentation sidebar.
Add a breakpoint with a click
Troubleshooting your code? CodeRunner makes it easy to add a breakpoint, which brings up the app’s powerful debugging tools including a command-line debugger. Just click to the left of a line of code to set a breakpoint there.
This feature is currently supported for Java, Python, PHP, Perl, Shell Script, and JavaScript using the Web Inspector.
Tweak your variables
To set the default inputs for your program and provide custom compile flags and arguments, click the Run Settings button (located just to the right of the Stop button).