# Work with files outside a project

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/en-us/help/idea/llms.txt).

You can create, open, and edit individual files on the IntelliJ IDEA Home screen without opening a project. It allows you to view files, make quick edits, take notes, or work with code snippets. Only a subset of IDE features is available in this mode. To access all features, open or create a project.

The IntelliJ IDEA Home screen opens when you start IntelliJ IDEA without a project.

![IntelliJ IDEA Home screen](https://resources.jetbrains.com.cn/help/img/idea/2026.3/ij_welcome_window.png)

## Open an existing file

Procedure:

* In the left panel of the IntelliJ IDEA Home screen, click Open and select the file you want to access.

You can also drag a file from your file manager into the IntelliJ IDEA window.

![Banner prompting to trust a file opened in projectless state](https://resources.jetbrains.com.cn/help/img/idea/2026.3/ij-trust-file-on-projectless.png)

With no active project, opening a file with IntelliJ IDEA from your file manager displays it on the IntelliJ IDEA Home screen. This replaces the previous LightEdit mode behavior.

> **Note:**
> IntelliJ IDEA saves changes made to already existing files automatically according to the [autosave settings](saving-and-reverting-changes.html#configure-autosave).

## Create and manage files

Procedure: Create a file

* In the left panel of the IntelliJ IDEA Home screen, click New and select Text File or press `Ctrl+Alt+Shift+Insert` (Windows), `⌘ ⇧ N` (macOS), `⌃ ⇧ N` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ N` (macOS System Shortcuts), `Ctrl+Alt+Shift+Insert` (XWin), `Ctrl+Alt+Shift+Insert` (GNOME), `Ctrl+Alt+Shift+Insert` (KDE), `Ctrl+Alt+Shift+Insert` (Emacs), `Ctrl+Alt+Shift+Insert` (Sublime Text), `⌘ ⇧ N` (Sublime Text (macOS)), `Ctrl+Alt+Shift+Insert` (Visual Studio), `⌘ ⇧ N` (Visual Studio (macOS)), `Ctrl+Alt+Shift+Insert` (NetBeans), `Ctrl+Alt+Shift+Insert` (Eclipse), `⌘ ⇧ N` (Eclipse (macOS)).

The file opens in a new tab with a generated name, for example `Untitled.txt`. You can edit it immediately, then [select a language](#change-file-language) and [save it](#save-new-file) to a location on your computer.

Procedure: Change language for a file

Select a language to use the corresponding syntax highlighting and other available editor features. For example, select JSON when you work with a JSON snippet.

1. Right-click the tab of the file for which you want to change the language on the IntelliJ IDEA Home screen.

2. From the menu that opens, select Change Language To and then select a language in the Change language dialog.

![Changing language for file created in projectless state](https://resources.jetbrains.com.cn/help/img/idea/2026.3/ij-change-file-lanuage-projectless.png)

Procedure: Save a new file

IntelliJ IDEA stores new files internally until you save them to a location of your choice. When you quit normally, the IDE retains these files for the next session.

Save newly created files to avoid losing your edits.

1. Make sure the file you want to save is in focus and press `Ctrl+S` (Windows), `⌘ S` (macOS), `⌘ S` (IntelliJ IDEA Classic (macOS)), `⌘ S` (macOS System Shortcuts), `Ctrl+S` (XWin), `Ctrl+S` (GNOME), `Ctrl+S` (KDE), `Ctrl+X, Ctrl+S` (Emacs), `Ctrl+S` (Sublime Text), `⌘ S` (Sublime Text (macOS)), `Ctrl+Shift+S` (Visual Studio), `⌘ ⇧ S` (Visual Studio (macOS)), `Ctrl+S` (NetBeans), `Ctrl+S` (Eclipse), `⌘ S` (Eclipse (macOS)).

Alternatively, click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.closeSmall.svg) on the file tab and confirm you want to save it.

2. In the dialog that opens, select the destination folder and  enter a file name.

After this initial save, IntelliJ IDEA saves subsequent edits according to the [autosave settings](saving-and-reverting-changes.html#configure-autosave).

## File security

To prevent potential security risks, the IDE lets you decide how to open a file if you are not sure about its source. IntelliJ IDEA warns you about tasks or configurations that will be executed during the opening process and lets you configure sources that you can trust.

> **Note:**
> Starting with IntelliJ IDEA version 2063.3, files open in the full IDE by default and go through the file security workflow. LightEdit mode is no longer available.

When you open a file for the first time, the IDE shows the Trust dialog.

![Trust file](https://resources.jetbrains.com.cn/help/img/idea/2026.3/trust_file.png)

The dialog helps to ensure that the file is safe to perform the following actions:

* Stay in Save Mode: in this case, IntelliJ IDEA opens the file in Safe Mode, meaning you can browse the file's content, but there are restrictions in executing code, performing build-related activities, and running scripts. For more information about Safe Mode preview limitations, refer to [Safe Mode limitations](project-security.html#safe_mode_limitations) since they are applicable to a file as well as to a project.

* Trust File: in this case, IntelliJ IDEA opens the file, enables all IntelliJ IDEA features and lets you perform all the available actions.

You can add certain files to the trusted locations so they would be considered safe and open automatically without any additional confirmation.

Procedure: Configure trusted locations

1. In the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))), go to `Appearance & Behavior | Trusted Locations`.

2. On the Trusted Locations settings page, specify the local directories or files that the IDE should trust. Click OK to save the changes.

The next time you open a file from one of those locations, IntelliJ IDEA will implicitly trust it.

