The C editor

A calmer, smarter place to write code. The C editor (C_EditorPage) is where you write, organise, compile and run your C programs.

The WorksUP C editor with the menu bar, toolbar, Notes panel, an Untitled tab with a Hello C program and the Output panel
The C editor with the NoteBar open on the left and the bottom panel below the code.

Parts of the editor

AreaWhat you’ll find there
Menu barFile (new file or project, open, recent files, save, export), Edit (undo, find and replace, go to line, bookmarks, format code), Compile and Tools.
Search boxTop centre. Press Ctrl+Shift+P to find files, settings and features. See Search and Settings.
ToolbarThe function list ((globals)), the compiler (TDM-GCC 4.9.2 64-bit), build and run buttons, what to compile, where to run it, and Auto-save.
Left SideBarExplorer, Notes, AeroCode Copilot, Debugger and C packages. See The Left SideBar.
TabsOne tab per open document, each with a pin and a close button.
Bottom panelOutput (what your program prints), Problems (compiler errors and warnings, with a counter) and Terminal.
Status barLine and column, number of characters, encoding (UTF-8), language (C) and zoom.

Compile and run

Use the toolbar or the Compile menu:

Two drop-downs control how this works:

SettingOptions
What to compileCurrent file, or Project (all .c) to build every .c file in the project together
Where to runExternal CMD (a separate console window) or Terminal (the Terminal tab of the bottom panel)

Features

Tabs

A tab view to work on several documents at once.

Coloured tabs

Optionally colour your tabs to stay organised.

Toolbar

Your most used actions, always at hand.

IntelliSense

Code completion and suggestions as you type.

Syntax highlighting

Improved colouring that makes code easier to read.

Working with several files

Each document opens in its own tab. An asterisk before the name (* Untitled) means the file has unsaved changes. Pin a tab to keep it in place, and use coloured tabs to group related files, for example one colour per exercise. Open files from the ExplorerBar in the Left SideBar.

Three Untitled tabs in the C editor, the first one marked with an asterisk for unsaved changes
Several documents open in tabs. IntelliSense shows the parameter name (Format:) inside printf.

To save time, turn on Auto-save in the toolbar, or use File › Save All Tabs.

IntelliSense

IntelliSense comes from Clangd, the language server WorksUP installs during the first-time wizard. It gives you code suggestions as you type, the parameters of a function while you write a call, information when you hover over a name, and Go to Definition (F12). You can turn each feature on or off in Settings › Preferences › Clangd Features.

Try it: your first C program

Paste this into a new document to see IntelliSense and syntax highlighting at work. If it doesn’t behave as you expect, open the DebugBar to see what’s happening.

C
#include <stdio.h>

int main(void) {
    int number;

    printf("Enter a whole number: ");
    scanf("%d", &number);

    if (number % 2 == 0)
        printf("%d is even\n", number);
    else
        printf("%d is odd\n", number);

    return 0;
}

Keeping notes with your code

Save your work as a .ctxt file to keep your C code and your notes together in one file.