VSCode extension providing intelligent autocompletion and validation for Hydra configuration files.
About Hydra: https://hydra.cc
WARNING redhat.vscode-yaml
- Python import path completion for
_target_
fields with active environment inspection - Smart completion for Hydra special keywords (
_partial_
,_args_
,_recursive_
,_convert_
) with documentation - Argument completion based on target Python classes
- Real-time Python import path validation against active environment
- Single-file circular reference detection
- Path hierarchy violation checks
- Hydra keyword value validation
- Missing reference validation within files
- Instantiation target argument validation.
- Go-to-definition for Python classes and methods
- Jump to reference definitions within the same file
- Documentation preview on hover for Hydra keywords
- Visual Studio Code 1.96.0+
- Python extension for VS Code
- Python environment with Hydra installed
- Install the extension from VSCode marketplace
- Select your Python interpreter:
Python: Select Interpreter
The extension activates automatically for .yaml
files. Features are accessible through:
- Typing triggers like
_target_:
or${
- IntelliSense (Ctrl+Space)
- Go to Definition (F12)
- Cross-file reference validation and completion not supported
- Complex circular reference patterns may not be fully detected
- Python import validation requires packages installed in interpreter
- Some completion triggers limited to specific characters
- No file watching for external config changes
Source code: https://github.com/Geson-anko/python-hydra-yaml
MIT