Writing code
The editor knows all five of Crash’s languages. It colors your code, checks it as you type, finishes words for you, and has the whole reference a key away.
It checks as you go
Stop typing for a moment and the IDE reads what you wrote. Anything wrong is underlined, and listed in the Problems tab at the bottom, with how many there are. Click a problem to go to it.
So you find out about a missing END IF while you’re still looking at it,
not when you run the game.
It finishes words for you
Start typing a name and a list pops up of what it could be: keywords and the engine’s functions, and in Crash BASIC 2 your own variables too. Pick one with the arrow keys and Enter, or keep typing. Ctrl+Space shows the list when it hasn’t popped up by itself, and Esc puts it away.
What does this do?
Hold the pointer over a name and a little box says what it is. For the full story, put the cursor on it and press F1. The help panel opens on the right, with everything about it:
- what it does, and how to write it,
- what each of its parameters means, and what can go after
!!, - examples,
- the errors it can make, and what else to look at.
◀ and ▶ go back and forward through what you’ve looked at, and the search box finds anything else. Press F1 again to close it. The panel’s What’s New lists what changed in this version of Crash.
Crash-tan’s Tip: The help is for the language of the file you’re in. In a Python file, F1 tells you how to say it in Python.
Where’s that defined?
Ctrl-click (Cmd-click on a Mac) one of your own functions or variables to go to where it’s made, even when that’s in another file.
Find and replace
Ctrl+F (Cmd+F) opens the find bar above the code. Type, and Enter goes to the next one and Shift+Enter to the one before. Aa makes it match capitals exactly. Replace… opens a second box, with Replace for this one and Replace all for every one. Esc closes the bar.
The same help outside the IDE
crashplayer --lsp gives another editor, like VS Code, the same checking,
finishing and help, if you’d rather write your code there.