Here is how you unlock Visual Studio: in Visual Studio, open File › Account Settings and choose either signing in with an account that has a subscription attached, or the License with a Product Key link. There you enter the 25-character key. Both ways unlock Professional and Enterprise permanently. The trial period is 30 days and can be extended to 90 days by signing in once. Community does not require a key.
Quick decision
| Your situation | What you do |
|---|---|
| Product key from the order available | enter the key in the account settings |
| Subscription on the Microsoft or work account | sign in to Visual Studio, unlock automatically |
| Computer without reliable internet | use a product key instead of only signing in |
| Community edition | no unlock needed (mind the limits) |
Where you download the editions is in
Download Visual Studio.
Option 1: Enter the product key
- Start Visual Studio.
- Choose File › Account Settings to open the Account Settings dialog.
- Choose the License with a Product Key link.
- Enter the product key in the field and confirm.
The key must match the installed edition: a Professional key does not unlock Enterprise. Avoid typos by copying and pasting. Microsoft points out that preview versions have no product keys; they are used only by signing in.
Option 2: Sign in with a subscription
If a Visual Studio subscription is attached to your account, signing in is enough:
- Choose Sign in at the top right or open File › Account Settings › Sign in.
- Sign in with the Microsoft account, the work or school account, or the GitHub account to which the subscription is attached.
- Visual Studio finds the associated subscription and unlocks the environment automatically.
Offline and permanently without internet
Microsoft explicitly recommends: anyone who uses Visual Studio for a longer time without or with little internet should use a product key to unlock it, in order to avoid interruptions. The reason is the license token of the sign-in. Microsoft names the message “Your license isn’t current and needs to be updated” when you have not used Visual Studio or the internet for a longer time or have signed out; then you sign in again. With a product key this token dependency does not apply. You create the installation files without internet as an offline layout; this is described by
Download Visual Studio.
Trial period and Community
- Trial period. Professional and Enterprise can be tested for 30 days according to Microsoft. Signing in extends the trial period once to 90 days.
- Community. This edition does not require a product key. A sign-in may be requested within 30 days; this does not affect usage. The usage limits (individuals, small teams, education and open source) are in Download Visual Studio.
Which edition and which year
Whether Professional or Enterprise is shown by
Visual Studio 2026 editions compared; the trade-off between the years is in
Visual Studio 2022 or 2026. Current licenses are, for example, Visual Studio 2026 Professional; all packages are under Development. More topics on Visual Studio, Project and Visio are bundled in the
Visual Studio guides overview.
Typical errors
If the key cannot be entered, check whether it belongs to the installed edition and whether it is a preview version (which does not accept a key). If Visual Studio reports an outdated or expired license, Visual Studio: license outdated or expired helps. An overview of the Microsoft error codes is in the
error code database.
Frequently asked questions
Where do I enter the Visual Studio product key? In Visual Studio under File › Account Settings, via the License with a Product Key link.
Key or sign-in – which is better? Both unlock. For computers with little or no internet, Microsoft recommends the product key, because then no license token has to be kept current.
Why does Visual Studio report “license isn’t current”? Because the license token of the sign-in was not refreshed, for example after a long time offline or after signing out. Sign in again or use a product key.
Does the Community edition need a key? No. Community is used without a product key; but usage limits apply to companies.
Can I use a Professional key for Enterprise? No. The key must match the installed edition. For Enterprise you need an Enterprise key.
Sources
Checked on 2026-11-30 against the publisher’s information: