Below, you'll find tables listing the commands you can use in the command palette. We put optional characters in square brackets to indicate that you can omit them.
> **Note**: We don't emulate the full power of Vim's command line yet. In particular, commands currently do not support arguments. Please [file issues on GitHub](https://github.com/zed-industries/zed) as you find things that are missing from the command palette.
### File and window management
This table shows commands for managing windows, tabs, and panes. As commands don't support arguments currently, you cannot specify a filename when saving or creating a new file.
| Command | Description |
| -------------- | ---------------------------------------------------- |
| `:w[rite][!]` | Save the current file |
| `:wq[!]` | Save the file and close the buffer |
| `:q[uit][!]` | Close the buffer |
| `:wa[ll][!]` | Save all open files |
| `:wqa[ll][!]` | Save all open files and close all buffers |
| `:qa[ll][!]` | Close all buffers |
| `:[e]x[it][!]` | Close the buffer |
| `:up[date]` | Save the current file |
| `:cq` | Quit completely (close all running instances of Zed) |
| `:vs[plit]` | Split the pane vertically |
| `:sp[lit]` | Split the pane horizontally |
| `:new` | Create a new file in a horizontal split |
| `:vne[w]` | Create a new file in a vertical split |
| `:tabedit` | Create a new file in a new tab |
| `:tabnew` | Create a new file in a new tab |
| `:tabn[ext]` | Go to the next tab |
| `:tabp[rev]` | Go to previous tab |
| `:tabc[lose]` | Close the current tab |
| `:ls` | Show all buffers |
> **Note:** The `!` character is used to force the command to execute without saving changes or prompting before overwriting a file.
### Ex commands
These ex commands open Zed's various panels and windows.
| Command | Default Shortcut |
| ---------------------------- | ---------------- |
| Open the project panel | `:E[xplore]` |
| Open the collaboration panel | `:C[ollab]` |
| Open the chat panel | `:Ch[at]` |
| Open the AI panel | `:A[I]` |
| Open the git panel | `:G[it]` |
| Open the notifications panel | `:No[tif]` |
| Open the feedback window | `:fe[edback]` |
| Open the diagnostics window | `:cl[ist]` |
| Open the terminal | `:te[rm]` |
| Open the extensions window | `:Ext[ensions]` |
### Navigating diagnostics
These commands navigate diagnostics.
| Command | Description |
| ------------------------ | ------------------------------ |
| `:cn[ext]` or `:ln[ext]` | Go to the next diagnostic |
| `:cp[rev]` or `:lp[rev]` | Go to the previous diagnostics |
| `:cc` or `:ll` | Open the errors page |
### Git
These commands interact with the version control system git.
| Command | Description |
| --------------- | ------------------------------------------------------- |
| `:dif[fupdate]` | View the diff under the cursor (`d o` in normal mode) |
| `:rev[ert]` | Revert the diff under the cursor (`d p` in normal mode) |
### Jump
These commands jump to specific positions in the file.
| Command | Description |
| ------------------- | ----------------------------------- |
| `:<number>` | Jump to a line number |