Skip to content

Editor

One of the first things the editor offers us is syntax highlighting.

highlighter

The editor also comes with autocompletion capabilities.

For example, we can create pepita, a bird that has energy and knows how to fly. We activate the autocompletion of Wollok’s syntactic elements using the keys Ctrl + Space. Once autocompletion is selected, you can use the Tab key to move between the offered placeholders.

Here we use more specific content assistants to, for example, know what messages to send to an object, which is activated with the . character

This tool works for describe, tests, object, classes, imports, class, initializers and more… We recommend using it!

Don’t get lost among your files! We have several tools so you can navigate the code without problems.

  • Ctrl + P: To search for a file
  • Ctrl + Shift + O: To search for elements within a file
  • Ctrl + T: To search for elements within the entire project

You can also use the elements tree image

By using Ctrl + Click with the mouse, you can navigate between the definition and uses of a variable. It’s also useful for navigating between message sends and methods!

Use the shortcut Ctrl + Shift + P + search for Focus on Outline view to open the Outline. More info here.

Familiarizing yourself with the editor is fundamental to feeling comfortable in the work environment. That’s why we advise you to check out this link where they tell you about the most useful VSCode shortcuts (and even how to extend them if you want).