diff --git a/packages/vite/src/node/shortcuts.ts b/packages/vite/src/node/shortcuts.ts index a34c96f3f6a3c5..df1a3bde1b1dfb 100644 --- a/packages/vite/src/node/shortcuts.ts +++ b/packages/vite/src/node/shortcuts.ts @@ -112,6 +112,13 @@ const BASE_SHORTCUTS: CLIShortcut[] = [ openBrowser(url, true, server.config.logger) }, }, + { + key: 'c', + description: 'clear console', + async action(server) { + server.config.logger.clearScreen('error') + }, + }, { key: 'q', description: 'quit',