feat(shortcuts): show quit shortcut in default CLI output#21572
feat(shortcuts): show quit shortcut in default CLI output#21572palewire wants to merge 1 commit intovitejs:mainfrom
Conversation
These two should work fine in Vite depending on which you prefer. Ctrl+C also shouldn't be hanging the process. The main benefit of the Can you show some examples, environments or repros where these methods are causing problems? |
Sure. Here's one. Even if you don't buy those definitions of the problem, I think this additional line of logging is worth doing strictly for the n00bs. I have seen dozens of students not understanding they've lost the ability to type more commands when they run A little hint like this could go a long way to clearing up that confusion and guiding new users into Vite and web development. |
Makes the
q + enterquit shortcut visible by default in the dev server startup message, instead of hiding it behind the help menu.This appears right after the existing "press h + enter to show help" line, making both the most essential shortcuts immediately visible.
Why?
When teaching Vite to newcomers (journalism students at CUNY, workshop participants), a common point of frustration is not knowing how to exit the dev server. New developers often:
Ctrl+Crepeatedly (which can leave processes hanging)The quit shortcut is arguably the most important one for beginners to know, yet it's currently hidden behind
h + enter. By the time they discover it, they've already developed workarounds.