Finding things in Construct

Let's take a look at the tools in Construct that let you find stuff.

Like in most development environments you can perform a text search by pressing Ctrl + F. Construct allows you to specify the scope of your search, toggle case sensitivity and you can even perform a second search to further filter down search results, which is especially handy when you have a lot of them. You can also remove results by selecting them and pressing Delete (re-running the search will bring them back).

If you're editing a code block or a text file, Ctrl + F brings up a different toolbar that allows you to find (and even replace) text. The toolbar might look familiar if you're a VSCode user, since both are powered by the open source Monaco code editor which replaced the old CodeMirror 5 based one in Construct 3 r432. It also has nifty features like renaming identifiers by pressing F2 and a bunch of other which you can find in the Command palette. Just note that the scope is always the current code block or tab.

As your project grows, you might end up scrolling a lot up and down the project bar to find event sheets, objects, files, et cetera; luckily there's a search field you can focus by pressing Ctrl + Shift + F and just start typing to find matches.

Since Construct is running in the browser you can still use the generic find tool, which can be especially useful for highlighting text on your screen. Press Ctrl + G to bring it up (since Ctrl + F is overridden to use Construct's own find feature).

A super useful feature (unfortunately missing from the free version) is that you can right click any object, family, function, custom action or variable and select "find all references". In all cases, Construct will compile a list of each "mention" in the event sheets. If you selected an object instance, object type or family, you'll also see the number of instances per layout. If you use the "Create object (by name)" system action anywhere, object & family reference lists will also include those actions as well just to be on the safe side; you can hide those results by unchecking "Show ambiguous".

If you opt in to use "global names" instead of string literals to reference names of animations, layers, effects, various tags and such in your event sheets, you'll also be able to find all mentions of those using the "find all references" feature. Not to mention the added bonus of typo protection and easy renaming. Read more about "global names" here!

When making changes to a fairly complex project it's easy to get lost jumping between event sheets (especially if you have about 20 of them open). In such a scenario I like to use the often forgotten bookmarks feature. The Bookmarks bar is not open by default, but I usually have it open all the time docked in the bottom left corner, just taking a bit of space from the Properties bar. When you're in an event, you can press F2 to bookmark it, which adds an easy to spot icon next to the event and adds it to the Bookmarks bar, where you can double click it to jump right to it. Just don't forget to remove old bookmarks you no longer need: the easiest way is to right-click the bar and select Remove All.

This article was updated on

Related posts