# Open / Close

In goormIDE, you can open source code files, as well as Vim editor and ZIP/TAR files.&#x20;

It also remembers recently opened files so you can easily get back to what you were working on.

### File - Default editor

To open a file, double-click the file you want to open in the Project Explorer on the left layout of goormIDE, or right-click and go to **\[Open]** or **\[Open with] > \[Default Editor]**.

Alternatively, go to **\[File] > \[Open File]** or press the default shortcut **`Ctrl + O (Mac: ⌘O)`**. \
In the '**Open File**' pop-up window that appears, select the file and press the **`OK`** button to open it. \
Depending on the file's extension, it may open in the default editor, or it may open in a document viewer, **Some extensions may not open because they are not supported.**

<figure><img src="https://2181851870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq-Q9LciN1X9EABxGkt%2Fuploads%2FYmeoTDaKVTWHoOhGUAz8%2Fimage.png?alt=media&#x26;token=264eaf40-8e19-46f7-a42e-2343caaf0176" alt="" width="563"><figcaption></figcaption></figure>

To view recently opened files, go to **\[File] > \[Open Recent Files]**. \
You can see up to five recently opened files, and clicking each file name will open the file. \
However, you may not be able to open files from other users that have been deleted or unshared.

Click **`Clear`** to clear your history.

<figure><img src="https://2181851870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq-Q9LciN1X9EABxGkt%2Fuploads%2FUYkrseH0124RkH7P2hG3%2Fimage.png?alt=media&#x26;token=5af4f870-06ad-44f4-b74b-f1a006ec8078" alt=""><figcaption></figcaption></figure>

### Vim Editor (Vim)

In addition to the regular editor, goormIDE also provides a Vim editor. When you open a file with the Vim editor, you can open the editor in the same environment as running Vim in the terminal.&#x20;

To open the Vim editor, right-click the file you want to open in the Project Explorer on the left layout of goormIDE, and then go to **\[Open as] > \[Vim Editor]**. \
This will open the editor with the editing environment set to Vim instead of the terminal. \
You can still use Vim shortcuts in the editor, and they work exactly the same as in Vim.

<figure><img src="https://2181851870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq-Q9LciN1X9EABxGkt%2Fuploads%2FjTZhhUNWbCBbsqVa5x3p%2Fimage.png?alt=media&#x26;token=a98d02f5-34e9-4db3-8a66-25b2223793da" alt=""><figcaption></figcaption></figure>

![](https://2181851870-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lq-Q9LciN1X9EABxGkt%2F-Lvs1KQseU93g1QVjr9_%2F-Lvs3PZN_u_u_KrierYC%2Fimage.png?alt=media\&token=84659da4-71a3-4193-a0bb-054f592ec877)

### Compress or Decompress with ZIP / TAR

You can use the ZIP/TAR compression/decompression feature.&#x20;

Right-click the file and click the **\[Compress/Decompress]** menu.

<figure><img src="https://2181851870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq-Q9LciN1X9EABxGkt%2Fuploads%2FJiNRfxrwADJkIVMLBiRB%2Fimage.png?alt=media&#x26;token=a3875117-e295-4a49-aba6-7b5238d6ec7f" alt="" width="300"><figcaption></figcaption></figure>

\
Alternatively, go to **\[File] > \[Compress]**. \
After extracting, you will have a folder with the same name as the compressed file in the same location, with the contents of the compressed file under it.

<figure><img src="https://2181851870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq-Q9LciN1X9EABxGkt%2Fuploads%2Fr9OcNHAI9rxxu4mIV1Uc%2Fimage.png?alt=media&#x26;token=d8b33aac-f086-4cb0-b5ef-ce8f7cda55da" alt=""><figcaption></figcaption></figure>

You can also unzip the archive by double-clicking the archive you want to open in the Project Explorer on the left layout of goormIDE.

### Close

To close a window, you can press the **`X`** icon to the far right of each window's tab title, or wheel-click the editor tab to close it.&#x20;

Alternatively, go to **\[File] > \[Close]** or press the default keyboard shortcut **`Alt + X (Mac: ⌥X)`**.&#x20;

You can also close a window by right-clicking the tab of the window you want to close and clicking the **\[Close]** menu. This will close the currently active window.

<figure><img src="https://2181851870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq-Q9LciN1X9EABxGkt%2Fuploads%2FMfa0XdhuP58Hva6jaiuD%2Fimage.png?alt=media&#x26;token=89cdf148-cd7a-4653-a9c5-a58815a3d985" alt=""><figcaption></figcaption></figure>

To close all windows other than a specific window, right-click on the tab of the window you want to leave behind and click the **\[Close Other Tabs]** menu. \
This feature only works within the current workspace. It does not affect other workspaces.&#x20;

To close all tabs to the right of the currently selected window, right-click on a tab in the window and click the **\[Close Tabs to the Right]** menu. \
This function only works within the current workspace. It does not affect other workspaces.&#x20;

To close all windows, go to **\[File] > \[Close All]** or press the default keyboard shortcut **`Alt + Shift + X (Mac: ⌥⇧X)`**. \
This function applies to all workspaces, closing all open windows without regard to workspace.
