kimi chat for C&C++ static analyzeThis is the demo project for VScode plugin which call kimi chat API by javascript to do static analyze C & C++ code. How to useFirst, install KIMIAIVERIFY from market place or vs packageYou can download vsix package from Release section in the github. And using following command to install:
Then, you need a kimi AI account, and get your API token at:user account info/basic info: We call this token as: Finally, you need to set your kimi API keyOpen the extension settings page by right click the configure button: Then copy your kimi API key from here: Start to use AI static checkNow everything is OK, just open any C/C++ source file, you can find "AI static check" in the right click menu: Or you can use CMD+shift+D keyboard short cut to call out this function. The AI check result can be find at output log: Development RequirementsYou also need to have a Microsoft account, login: Then access Azure DevOps: In the User settings, get Personal access tokens: Create a new personal access token as: And don't forget to copy to some safe place: You also need to create a visual studio publisher at: https://marketplace.visualstudio.com/manage/createpublisher Extension SettingsInclude if your extension adds any VS Code settings through the For example: This extension contributes the following settings:
Known IssuesOne Kimi free user API can only support one API call everytime, it takes about 5 seconds to get first response. Release Notes1.0.0Initial release of KIMI AI for C/C++ static analyze VScode plugin For more informationEnjoy! |