Webcogs VSCode extensionPart of the Webcogs open source experimental AI software engineering toolkit. The extension provides a CodeLens alternative for the buildcogsinplace command line tool. FeaturesProvides methodical prompts-as-code facilities that are complementary to the ad hoc prompting offered by most code generating AI tools. Instead of prompting in a chat line, then throwing away the prompts once the code is generated, prompts can be embedded in the source code.
How to useYou have to activate the codelens from the command palette. Type Shift-Ctrl-P, then select "Webcogs: Enable Webcogs Codelens". You need to have an OpenAI API key, which you are prompted to fill in when the plugin initialises. If you have to re-enter it, use the command "Webcogs: Re-enter Webcogs OpenAI API Key". There's no accept/reject dialog after generating code yet, but the code generations can be undone with regular undo (Ctrl-Z). You can augment your source files with @cogs directives inside multiline comments, which indicate prompts with which parts of your code can be generated. It currently supports C-style multiline comments only (without nesting), so it works for languages like Java, C, C++, C#, PHP, Javascript, Typescript, CSS. Example:
For full documentation, see the Github repo: https://github.com/borisvanschooten/webcogs-ai-toolkit Extension SettingsThis extension contributes the following settings:
Known IssuesThis is as yet an experimental plugin. Error handling still needs work. How to re-build from sourceDownload the repo. Make sure to install the vsce tool:
Go to the repo's vscode-extension/webcogs subdirectory, then:
This will create a vsix package, which you can install in VSCode:
Release Notes0.3.1First release, with improved docs |