Skip to content

[html] improve HTML sample snippet: Don’t prompt for viewport values #272331

@RoeiMeiri9

Description

@RoeiMeiri9

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.

Image

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitieshtmlHTML support issuesinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requested

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions