vi studio

Lessons · Vi Studio · 27 of 36

Inspect, move and lay out

Find a container’s code, drag it somewhere else, set its layout.

Turn on Inspect with the target icon in the preview's header. Then:

Turn Inspect off again with the same icon, and the phone works normally.

Move mode

Next to Inspect is Move. With it on:

The Layout menu

While inspecting, right-click a container to open the Layout menu next to the pointer. It writes the attributes for you:

Move out and Move in

Right-click a container's name in the editor, or press Ctrl+. on it:

The code changes as you click, and the phone follows.

Every example here runs in Vi Studio: open it in your browser (phones too) and press Start learning on the welcome page. Each code block there has a Try it button that runs it in the phone preview.

More in Vi Studio

About Vi. Vi is a free, open-source programming language for building real mobile apps. You describe each screen in plain words, and Vi compiles it to React Native (Expo) for Android, iOS and the web. Its editor, Vi Studio, runs on Windows, in any browser and on your phone, with the app running live as you type. Read more about Vi.