CI&T Flow is a Visual Studio Code extension designed to assist developers with code reviews and code fixes using AI. This extension leverages an external API to provide feedback and suggestions on selected code snippets.
Click on your username at the bottom left of the screen.
Go to Settings.
Go to Your Profile > API Keys.
Enter a name for the API key, select the llm-api under apps and click Create.
Copy the Client ID, Client Secret and Tenant values.
Usage
Code Review:
Select the code you want to review.
Right-click and choose CI&T Flow > Code Review.
The response will be displayed in a new tab.
Fix Code:
Select the code you want to fix.
Right-click and choose CI&T Flow > Fix Code.
The response will be displayed in a new tab.
Generate Unit Tests:
Select the code you want to generate unit tests for.
Right-click and choose CI&T Flow > Generate Unit Tests.
The response will be displayed in a new tab.
Chat with Flow:
Click on the extension icon in the left sidebar.
A chat window will open where you can ask questions and get responses from Flow.
Inline Completions:
Write a comment expressing what you want.
Press the Trigger Inline Completion shortcut (default to Alt + \ or Option + \ on Mac) to generate a code suggestion.
Press tab to accept the ghost text completion.
Customize the shortcut: Access File > Preferences > Keyboard Shortcuts, search for "Trigger Inline Completion" and replace the default keybinding with your preferred one.
Generate Commit Message:
Go to the Source Control view.
Stage the file changes you want to commit.
Click on the Flow icon to generate the commit message.
You can define a prefix for the commit message in the presented dialog or leave it blank for no prefix.
Keyboard Shortcuts
Alt + F Alt + U (Unit Tests)
Alt + F Alt + R (Code Review)
Alt + F Alt + X (Fix Code)
Alt + F Alt + S (Generate User Stories)
Proxy Configuration
If you are behind a proxy, you can configure the extension to use it by setting the related settings in the VS Code settings.
Requirements
Visual Studio Code version 1.95.0 or higher.
License
This project is licensed under the MIT License.
Enjoy coding with the official Flow extension for VS Code!