What is an IDE?

An Integrated Development Environment.

What is an IDE?

  • Combines editor, project management, compiler, debugger, etc. into one program.
  • Commonly used on Windows (and OS X, to a lesser extent).
  • Usually feature code completion.
  • Provide a build management system for complicated projects.
  • Some come with graphical tools for building GUIs.

X11 Forwarding

X11 Forwarding

We're going to be using IDEs that are installed on the campus Linux machines.

You have to forward your GUI windows, so that they are visible on your Windows machine.

X11 Forwarding

  1. Start Xming on your Windows box.
  2. Open PuTTY and enable X11 forwarding
  3. Log in as usual

X11 Forwarding

If you've got things setup properly, you'll be able to forward GUI applications from the remote Linux machine to your local Windows machine!

Try running the gedit command to start the GNOME editor.

X11 Forwarding

You will find it useful to have a couple of PuTTY windows open. When a GUI program is running, the shell that you started it with will not work until the program is complete.


Geany Features

  • F9 -- Builds the project
  • F5 -- Runs the project

Building with Geany

It doesn't work so well for multi-file projects.

After you create a project...

  • Go to Project > Properties > Build
  • Find the "Build" command (g++ -Wall -o "%e" "%f")
  • Change it to g++ -Wall -o "%e" *.cpp

Writing code with Geany

  • Ctrl + t -- Go to function implementation
  • Ctrl + space -- Show completions.
  • Set space preference to "Spaces" in Edit > Preferences > Editor > Indentation
  • You can auto-close brackets and parentheses as well.


Building with Code::Blocks

  • F9 -- Build and run
  • Ctrl + F9 -- Build
  • Ctrl + F10 -- Run
  • Enable -Wall in Project > Build Options

Writing code with Code::Blocks

  • Ctrl + . -- Go to function implementation.
  • Ctrl + Shift + . -- Go to function declaration.
  • Ctrl + space -- Show completions.
  • Right-click on a file and choose ‘Format this file’ to autoformat.