# File

## Overview

This menu item provides options for creating new files, opening existing files, managing recent files, and saving work. It also includes commands for closing editors, printing, importing, exporting, and accessing project properties. Additional functionalities such as switching workspaces, refreshing the environment, renaming items, and converting line delimiters are available.

## Commands Summary

A summary of commands available via clicking on this menu item:

| Command                                                              | Summary                                                                                                                                                                          |
| -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [New](#new)                                                          | Opens a list of available items to be created                                                                                                                                    |
| [Open File](#open-file)                                              | Opens a File location window                                                                                                                                                     |
| [Open Projects from File System...](#open-projects-from-file-system) | Opens the [Import Projects from File System or Archive](https://github.com/Servoy/gitbook/blob/master/reference/servoy-developer/object-editors/project-import-wizard.md) wizard |
| [Recent Files](#recent-files)                                        | Displays a list of recent used files                                                                                                                                             |
| [Close Editor](#close-editor)                                        | Closes the current editor                                                                                                                                                        |
| [Close All Editors](#close-all-editors)                              | Closes all editors                                                                                                                                                               |
| [Save](#save)                                                        | Saves the current file                                                                                                                                                           |
| [Save As](#save-as)                                                  | Saves the current file                                                                                                                                                           |
| [Save All](#save-all)                                                | Saves changes done in all files                                                                                                                                                  |
| [Revert](#revert)                                                    | Reverts all unsaved changes in the current file                                                                                                                                  |
| [Move](#move)                                                        | Moves the selected file                                                                                                                                                          |
| [Rename](#rename)                                                    | Renames the selected file                                                                                                                                                        |
| [Refresh](#refresh)                                                  | Refreshes the content of the current file                                                                                                                                        |
| [Convert Line Delimiters To](#convert-line-delimiters-to)            | Changes the line delimiters                                                                                                                                                      |
| [Print](#print)                                                      | Displays printing settings                                                                                                                                                       |
| [Import](#import)                                                    | Opens the [Import](https://docs.servoy.com/reference/object-editors/solution-import-wizard#overview) wizard                                                                      |
| [Export](#export)                                                    | Opens the [Export](https://docs.servoy.com/reference/object-editors/file-export-wizard#overview) wizard                                                                          |
| [Properties](#properties)                                            | Opens the [Properties](https://docs.servoy.com/reference/servoy-developer/object-editors/properties-editor) editor                                                               |
| [Switch workspace](#switch-workspace)                                | Displays a list of recent workspaces                                                                                                                                             |
| [Restart](#restart)                                                  | Restarts the Servoy Developer                                                                                                                                                    |
| [Exit](#exit)                                                        | Exits the Servoy Developer                                                                                                                                                       |

## Commands Details

The details for each command available via clicking on this menu item:

### New

keybinding: `Alt+Shift+N`\
Opens a sublist of available items to be created:

* **Servoy Solution**: opens the [New Solution](https://docs.servoy.com/reference/servoy-developer/object-editors/new-solution-wizard) wizard
* **Project**: opens the [New Project](https://docs.servoy.com/reference/servoy-developer/object-editors/new-project-wizard) wizard
* **Database Server**: opens a window where the user can select the server type, then it switches to [Database Server Connection](https://docs.servoy.com/reference/servoy-developer/object-editors/database-server-connection-editor) editor
* **Form**: opens the [New Form](https://docs.servoy.com/reference/servoy-developer/object-editors/new-form-wizard) wizard
* **Method**: opens the [New Method](https://docs.servoy.com/reference/servoy-developer/object-editors/new-method-wizard) wizard
* **Relation**: opens a window where the user can enter a name for the new relation and select the solution, then it switches to [Relation](https://docs.servoy.com/reference/servoy-developer/object-editors/relation-editor) editor
* **Valuelist**: opens a window where the user can enter a name for the new valuelist and select the solution, then it switches to [Valuelist](https://docs.servoy.com/reference/servoy-developer/object-editors/valuelist-editor) editor
* **Other**: opens a wizard selection window; keybinding: `Ctrl+N`

### Open File

Opens a File location window, where the user can search and select the desired file.

### Open Projects from File System

Opens the [Import Projects from File System or Archive](https://github.com/Servoy/gitbook/blob/master/reference/servoy-developer/object-editors/project-import-wizard.md) wizard.

### Recent Files

Displays a list of recent used files. The user has the option to select a file and to clear history.

### Close Editor

keybinding: `Ctrl+W`\
Closes the current editor. It displays a message if there are any unsaved changes.

### Close All Editors

keybinding: `Ctrl+Shift+W`\
Closes all editors. In case there are any unsaved changes it shows a window with a list of all resources that have unsaved edits: the user can select which ones to save.

### Save

keybinding: `Ctrl+S`\
Saves changes done in the current file.

### Save As

It shows a window where the user can change the file location, select a parent folder and even rename the file.

### Save All

keybinding: `Ctrl+Shift+S`\
Saves changes done in all files.

### Revert

Reverts all unsaved changes in the current file to the last saved change.

### Move

When performing thus operation, a window will appear, allowing users to specify the required information (new location of the file) and preview the change.

{% hint style="warning" %}
This command is available **only** in the [Project Explorer](https://docs.servoy.com/reference/servoy-developer/views/project-explorer) view.
{% endhint %}

### Rename

keybinding: `F2`\
Allows the user to rename the selected file.

{% hint style="warning" %}
This command is available **only** in the [Project Explorer](https://docs.servoy.com/reference/servoy-developer/views/project-explorer) view.
{% endhint %}

### Refresh

keybinding: `F5`\
Refreshes the content of the current file.

### Convert Line Delimiters To

The user can change the line delimiters by selecting an option between Windows and Unix.

### Print

keybinding: `Ctrl+P`\
Opens a window where the user can configure the printing settings and preferences before printing the current file.

### Import

Opens the [Import](https://docs.servoy.com/reference/object-editors/solution-import-wizard#overview) wizard, where the user can import / install software from another product.

### Export

Opens the [Export](https://docs.servoy.com/reference/object-editors/file-export-wizard#overview) wizard, where the user can select the export type and set further options, according to initial choice.

### Properties

keybinding: `Alt+Enter`\
Opens the [Properties](https://docs.servoy.com/reference/servoy-developer/object-editors/properties-editor) editor for the active file.

### Switch workspace

Shows a list of recent workspaces and the option `Other`, which opens a window where the user can select the desired workspace.

### Restart

Restarts the Servoy Developer.

### Exit

Exits the Servoy Developer.
