OceanBase SQL Keywords Documentation Helper
A VSCode extension that helps developers quickly find OceanBase SQL keywords documentation with multi-language support.
Note
This extension only supports VSCode 1.101.0 and above. Please ensure your VSCode is upgraded to May 2025 or later.
✅ Implemented Features
- 🔍 Smart Keyword Recognition: Supports single keywords and multi-word keywords (such as
ALTER OUTLINE , ALTER EXTERNAL TABLE )
- 🖱️ Hover Tooltips: Hover over keywords to display description information
- 🖱️ Double-click Navigation: Double-click keywords to directly jump to corresponding documentation
- 📖 CodeLens Links: Display "📖 View Documentation" links above keywords, click to jump
- 🔄 Hot Reload Configuration: Automatically takes effect after modifying
keywords.json file
- ⚙️ Custom Keywords: Supports user-defined keywords and documentation links
- 🌐 Multi-language Support: Switch between Chinese and English documentation
- ⚙️ Language Configuration: Easy language switching through settings or commands
🚀 Installation
Search and install this extension in the VSCode extension marketplace, or download the .vsix package and install it with the following command:
code --install-extension oceanbase-sql-keywords-helper-*.vsix
Restart VSCode after installation.
📖 Usage Instructions
- Open or create a
.sql file, ensure the language mode in the bottom right corner is SQL.
- Hover over OceanBase SQL keywords to view descriptions.
- Double-click keywords to directly jump to official documentation.
- "📖 View Documentation" links will appear above keywords, click to access detailed documentation.
🌐 Language Switching
Method 1: Command Palette
- Press
Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)
- Type "OceanBase SQL: 切换文档语言" and select it
- The language will switch between Chinese and English
Method 2: Settings
- Open VSCode Settings (
Ctrl+, or Cmd+, )
- Search for "OceanBase SQL Helper"
- Change the "Language" setting to "zh-CN" (Chinese) or "en-US" (English)
🔧 Supported Keyword Types
- Single keywords: such as
SELECT , INSERT , UPDATE , DELETE , etc.
- Multi-word keywords: such as
ALTER OUTLINE , CREATE MATERIALIZED VIEW , etc.
- Case-insensitive
❓ Common Issues
Extension not working?
- Please confirm VSCode version is 1.101.0 or above.
- Confirm the SQL file language mode is correct.
- Restart VSCode if you encounter issues.
How to customize keywords?
- Only source code developers can customize, regular users cannot directly modify keywords.
Extension errors or invalid navigation?
- Please ensure network connectivity, or report to the extension repository.
Language switching not working?
- Try restarting VSCode after changing the language setting.
- Check if the language configuration is saved correctly.
💬 Feedback and Support
For suggestions, issues, or requirements, please leave a message in the extension marketplace or submit an Issue through GitHub.
📄 License
Apache License 2.0
| |