asdlookup - Fast ID to Description Translation
Overview
asdlookup is a Visual Studio Code extension that provides quick translation of IDs to their corresponding descriptions.
Features
- Hover over IDs to see their corresponding descriptions
- Customizable database file for ID-description pairs
- Fast in-memory lookups for efficient performance
- Error handling for invalid or missing database files
Installation
- Open Visual Studio Code
- Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on macOS)
- Search for "asdlookup"
- Click Install
Alternatively, you can download the .vsix file from the GitHub repository and install it manually.
Usage
- After installation, open your User Settings (File > Preferences > Settings)
- Search for "asdlookup" in the settings search bar
- Under "asdlookup: Database Path", enter the path to your JSON file containing ID-description pairs
- Open any file in your workspace
- Hover over an ID to see its description
Setting Up Your Database
Create a JSON file with your ID-description pairs. For example:
{
"0x001": "Temperature Sensor",
"0x002": "Pressure Sensor",
"0x003": "Humidity Sensor",
"0x004": "LED Control",
"0x005": "Motor Speed",
"0x006": "Accelerometer X-axis",
"0x007": "Accelerometer Y-axis",
"0x008": "Accelerometer Z-axis",
"0x009": "Battery Voltage",
"0x00A": "System Status",
"0x00B": "Error Code",
"0x00C": "GPS Latitude",
"0x00D": "GPS Longitude"
}
Save this file as whatever.json
in your workspace.
License
This project is licensed under the MIT License.