# File Menu

The File menu holds the commands that open, save, close, export and build a project. [Saving and exporting](/tB/IDE/Projects/Saving-and-Exporting.md) explains the first four.

![The File menu open below the menu bar with no project loaded, in five groups divided by lines. New Project, Open Project, Open Recent and Exit are available, and every other item is greyed out. Each item has an icon except Open Recent and Close Project, and five show a key at the right: Ctrl+N, Ctrl+O, Ctrl+S, Ctrl+E and Alt+F4.](/IDE/Menu/Images/Menu_File.png){:width="190" height="337"}

The commands from **Close Project** to **Clean** work on the open project, and are greyed out when none is open.

## Open and close

**New Project...** (<kbd>Ctrl</kbd>+<kbd>N</kbd>) and **Open Recent...**
: Open the **New / Open Project** dialog, on its **New** section and on its **Recent** section. Nothing is closed until you press **Open** in it. See [New Project](/tB/IDE/Starting/New-Project.md) and [Opening projects](/tB/IDE/Starting/Opening-Projects.md).

**Open Project...** (<kbd>Ctrl</kbd>+<kbd>O</kbd>)
: Opens a project file, or a `.vbp` file, which is imported as a new project. See [Opening projects](/tB/IDE/Starting/Opening-Projects.md) and [Importing a VB6 project](/tB/IDE/Starting/Importing-VB6.md).

**Close Project**
: Closes the project, after a question if it has unsaved changes. It has no key. See [Close Project and Exit](/tB/IDE/Projects/Saving-and-Exporting.md#close-project-and-exit).

**Exit** (<kbd>Alt</kbd>+<kbd>F4</kbd>)
: Closes the project, after the same question, and ends the IDE.

## Save

**Save Project** (<kbd>Ctrl</kbd>+<kbd>S</kbd>)
: Saves the whole project, with every open editor. For a project with no file, it asks for one first. See [Save Project](/tB/IDE/Projects/Saving-and-Exporting.md#save-project).

**Save Project As...**
: Saves the project to a file that you choose, and keeps that file as the project's. It has no key. See [Save Project As](/tB/IDE/Projects/Saving-and-Exporting.md#save-project-as).

**Save Current Document**
: Is always greyed out, and has no key. The IDE saves the whole project, not one file.

## Export

**Export Project...** (<kbd>Ctrl</kbd>+<kbd>E</kbd>)
: Writes the project out to a folder as separate files, after it deletes everything in that folder. See [Export Project](/tB/IDE/Projects/Saving-and-Exporting.md#export-project), and read its warning first.

## Build and Clean
{: #build }

**Build**
: Compiles the project into the file that the [*Build Output Path*](/tB/IDE/Project-Settings.md#build-output-path) setting names, for the architecture that the [build configuration](/tB/IDE/Reference/Toolbar.md#build-configuration) box on the toolbar shows. It saves nothing, and runs nothing. For a project with no file, it first asks for one. It has no key. See [Build and Clean](/tB/IDE/Building/Build-and-Clean.md) and [What a build writes](/tB/IDE/Building/Build-Output.md).

**Clean**
: Deregisters the previously built DLL, if there is one, and deletes the previous build file. It has no key. See [Clean](/tB/IDE/Building/Build-and-Clean.md#clean) and [ActiveX registration](/tB/IDE/Building/ActiveX-Registration.md).

The [Building](/tB/IDE/Building/index.md) chapter describes both, with the log that the **DEBUG CONSOLE** shows.
