A VS Code extension that provides live Python token analysis with definitions from your comprehensive Python dictionary.
- Live Hover Information: Hover over Python tokens to see definitions and usage
- Visual Token Analysis Panel: View all tokens organized by type with positions and descriptions
- Status Bar Integration: See current token information in the status bar
- Comprehensive Dictionary: Uses your Python reference dictionary for accurate definitions
- Real-time Analysis: Updates as you type
- Interactive Dictionary: Clickable token squares with search functionality
- Examples Included: Every token includes working Python code examples
For Windows:
- Locate the
python-token-analyzer-0.0.3.vsixfile - Open VS Code → Extensions (
Ctrl+Shift+X) - Click ellipsis (
...) → "Install from VSIX..." - Select the
.vsixfile
For macOS:
- Locate the
python-token-analyzer-0.0.3.vsixfile - Open VS Code → Command Palette (
Cmd+Shift+P) - Type "Extensions: Install from VSIX..." and select it
- Select the
.vsixfile
chmod +x install_extension.sh
./install_extension.sh# Windows
code --install-extension python-token-analyzer-0.0.3.vsix
# macOS/Linux
code --install-extension python-token-analyzer-0.0.3.vsix- Open any Python file (
.py) - Hover over Python keywords like
def,class,printto see definitions - Check the "Python Token Analysis" panel in the Explorer sidebar
- Use
Ctrl+Shift+P(Windows) orCmd+Shift+P(macOS) and search "Python Token" for commands
Language_Token_Analyzers/
├── python-token-analyzer/ # Python Token Analyzer Extension
│ ├── extension.js # Main extension logic
│ ├── package.json # Extension metadata
│ ├── built-in-definitions.js # Auto-generated token definitions
│ ├── python-dictionary.js # Auto-generated dictionary structure
│ ├── README.md # Python extension documentation
│ └── python-token-analyzer-0.0.3.vsix # Packaged extension
├── Python_Dictionary.md # Python language definitions
├── generate_python_dictionary_js.py # Python dictionary generator
└── install_extension.sh # Installation script for macOS/Linux
-
Edit extension files:
python-token-analyzer/extension.js- Main extension logicpython-token-analyzer/package.json- Extension metadata
-
Regenerate definition files:
python generate_python_dictionary_js.py --source Python_Dictionary.md --out-dir python-token-analyzer
-
Package the extension:
cd python-token-analyzer vsce package --allow-missing-repository --skip-license -
Install the updated extension:
code --install-extension python-token-analyzer-0.0.3.vsix
- VS Code 1.74.0 or higher
- Node.js - For
vscepackaging tool (Python extension) - Python 3 - For generating definition files from markdown (Python extension)
- No external files needed - All definitions are embedded in the extensions
- Live hover tooltips with detailed definitions
- Interactive token panels in the Explorer sidebar
- Real-time analysis as you type
- Comprehensive dictionaries with hundreds of token definitions
- Command palette integration for easy access
- Status bar integration showing current token info
- Working code examples for every token
- Interactive dictionary view with search functionality
- Clickable token squares with modal dialogs
- 104 token definitions covering keywords, builtins, and operators
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request