---
title: Workspace files basic usage
description: Learn how to use the UI to create, upload, and edit workspace files.
canonical_url: https://docs.databricks.com/aws/en/files/workspace-basics
---

# Workspace files basic usage

You can use the workspace UI to create, import, and edit workspace files.

> [!NOTE]
>
> All files present in a repository are synced as workspace files automatically when you [clone a Git repository](https://docs.databricks.com/aws/en/repos/git-operations-with-repos.md).

## <a id="create-a-new-file" />Create a new file

You can create a new file in any Databricks directory. Within the directory, click **Create** > **File**.

## <a id="import-file" />Import a file

To import a file, click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) kebab menu within your directory and select **Import**. The import dialog appears. You can drag files into the dialog or click **browse** to select files.

![Import a file](https://docs.databricks.com/aws/en/images/files/import-file.png)

You can also drag and drop files directly into your workspace. This feature works in the main file browser and the workspace file browser side panel, which is accessible from notebooks, queries, and file editors.

![Drag and drop files in the workspace file browser side panel from the notebook editor.](https://assets.docs.databricks.com/_static/images/notebooks/drag-drop-file-from-notebook.gif)

> [!NOTE]
>
> * Only notebooks can be imported from a URL.
> * When you import a .zip file, Databricks automatically unzips the file and imports each file and notebook that is included in the .zip file.
> * You can import .whl files to use as libraries.

## Edit a file

To edit a file, click the filename in the workspace browser. The file opens and you can edit it. Changes are saved automatically.

When you open a Markdown (`.md`) file, the rendered preview is displayed by default. To edit a cell, double-click in the cell. To return to preview mode, click anywhere outside the cell.

The editor includes additional functionality such as autocomplete, multicursor support, and the ability to run code. For more information, see [Navigate the Databricks notebook and file editor](https://docs.databricks.com/aws/en/notebooks/notebook-editor.md).

## Navigate between files in tabs

You can navigate between your workspace files and notebooks in tabs. To work without the tab bar, see [Work with a single notebook or file](https://docs.databricks.com/aws/en/notebooks/notebook-ui.md#focus-single).
