Context-aware menus enable quick actions like creating variables or adding query parameters by selecting text or elements. The context menu offers three options: Set as Variable, Add to Parameters, and Open Request in New Tab.Documentation Index
Fetch the complete documentation index at: https://docs.hoppscotch.io/llms.txt
Use this file to discover all available pages before exploring further.
The “Add to Parameters” option is available only when using query parameters.
Set as Variable
You can use the Set as Variable option from the context menu to assign a selected value to an environment variable. Hoppscotch supports various variable scopes, including global, environment, and request-specific variables. For more details on these scopes click here.How to use “Set as Variable”
After setting an environment variable, you can reference it using the format<<variable name>>. This allows you to
store values for reuse. For example, <<baseURL>> can be used to dynamically insert the base URL
across your requests.
Add to Parameters
The Add to Parameters option allows you to quickly add parameters along with their values. When you select Add to Parameters, it automatically captures the parameter and its value. For example, if thebaseURL is
https://jsonplaceholder.typicode.com/?user=1, now the user with ID 1 will
be included in the parameter placeholder.