mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #5840] [feature]: Ability to link/associate a default Environment with a Collection #2287
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2287
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Trishadring on GitHub (Feb 5, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5840
Is there an existing issue for this?
Summary
would like an option in the Collection Settings (or the "Edit Collection" modal) to select a "Default Environment."
Behavior:
Describe alternatives you've considered
Currently, I have to manually use the environment dropdown every time I switch collections. Another alternative is using "Collection Variables," but these don't replace the need for environment-specific secrets (like API keys or base URLs) that change between Dev, Staging, and Prod.
Additional context
This would greatly improve the user experience for developers managing multiple projects within the same Hoppscotch instance. It ensures the "Context" (Collection + Environment) is always in sync.
Why should this be worked on?
When switching between different collections (e.g., switching from a "Payment API" project to a "User Management" project), I have to manually change the Environment in the top-right corner every time.
If I forget to switch the environment, the requests fail or, worse, I accidentally run a request against the wrong environment. It is time-consuming to manually toggle this every time I click a different collection in the sidebar.
@luongquochai commented on GitHub (Mar 12, 2026):
Hi @jamesgeorge007 , can I try on this ?