Effortlessly select keys, values, or both from JSON files based on line ranges or specific line numbers. Simplify JSON file editing and management with this powerful and user-friendly extension.
Features
Select Keys Only: Highlight and select just the keys from JSON key-value pairs.
Select Values Only: Focus on selecting only the values from JSON.
Select Keys and Values: Grab entire JSON key-value pairs with ease.
Flexible Line Selection:
Specify line ranges (e.g., 1-5).
Select individual lines (e.g., 3, 7).
Combine both (e.g., 1-3, 5, 8-10).
How to Use
Open any JSON file in VS Code.
Run the command: JSON Key Selector: Select JSON Keys/Values by Lines.
Shortcut: You can assign a shortcut to this command in your keybindings.
Choose one of the following options:
Key: Select only the keys.
Value: Select only the values.
Key and Value: Select both keys and values.
Enter the line numbers or ranges (e.g., 1-5, 8, 10-12).