The Django Navigator extension for Visual Studio Code is a useful tool that allows Django developers to quickly navigate between URLs defined in urls.py files within their project. By using this extension, you can easily find and highlight the definition of a URL corresponding to a {% url %} tag in your code, improving your efficiency when working on Django projects.
Features
Quick Navigation: Find and quickly navigate to the URLs defined in your urls.py files.
URL Highlighting: Highlight the line that contains the URL definition corresponding to the {% url %} tag.
Installation
To install the extension, follow these steps:
Open Visual Studio Code.
Go to the extensions tab (or press Ctrl+Shift+X).
Search for "Django Navigator".
Click on "Install".
Usage
Open a Django template file where you have the {% url %} tag.
Select the tag you want to navigate.
Press Ctrl+Shift+P to open the command palette.
Type Django Navigator: Go To URL and press Enter.
The extension will open the corresponding urls.py file and highlight the URL definition.
Contributions
Contributions are welcome! Feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.