-
Notifications
You must be signed in to change notification settings - Fork 38.9k
[html] improve HTML sample snippet: Don’t prompt for viewport values #272331
Description
This is not really a new feature but a small UX improvement suggestion.
When creating a new HTML file, VS Code currently asks the user to define width and initial-scale for the viewport meta tag.
These values are almost universally standardized (width=device-width, initial-scale=1.0) and rarely, if ever, changed in regular projects. Prompting users to configure them adds unnecessary friction to what should be a zero-decision step — especially since this is one of the very first interactions most developers have when starting a web project.
I’d suggest using these values as defaults without prompting. Developers who need to override them (for kiosk displays, fixed-width designs, etc.) can easily edit the tag later.
Instead, the UI could move the cursor directly to the <title> field, and then to the <body> when pressing Tab.
This small UX change would make the “new HTML file” experience smoother, cleaner, and more modern — especially for newcomers.
