CodeGeeX Extenstion Development Guidance
November 30, 2022 · View on GitHub
This is a simple guidance for developping CodeGeeX extenstion (for VS Code), you can add customizable features to CodeGeeX.
-
Clone Source Code
git clone git@github.com:CodeGeeX/codegeex-vscode-extension.gitcd codegeex-vscode-extension
-
Install Requirements
- Use
npm installto install packages required inpackage.json.
- Use
-
Modify Configuration
- Set your own ApiKey and ApiSecret in
src/localconfig.ts. ApiKey and ApiSecret can be applied in Tianqi API Platform. - If you want to enable a statistics collection, you need to set the server address for
statsHerf;If disabled,just setenableStats=false。
- Set your own ApiKey and ApiSecret in
-
Run and Debug
- Enter "Run and Debug" mode in the left Activity Bar in VS Code,and click on
Run Extensionto launch the extenstion to debug. - If the source code is modified, press
cmd+Rto reload the extension。
- Enter "Run and Debug" mode in the left Activity Bar in VS Code,and click on
-
Generate VSIX Package
- Use
npm install -g vsceto install - Use
vsce packageto generate package in.vsixformat. - In VS Code Extension settings, choose
Install from VSIXto install the generated package.
- Use
If you have suggestions or developped cool features for CodeGeeX, please raise issues and pull requests. Contact us: codegeex@aminer.cn.