🪄StarShip CodeSouler——Your AI Coding Mate
StarShip CodeSouler is a programming plugin powered by the latest large model technology, introduced by OpenCSG. From generating tests to writing and reviewing code, CodeSouler offers a suite of tools to enhance efficiency, improve code quality, and streamline the development process, aimed at optimizing your software development lifecycle
✨Quick Access
💫Why CodeSouler
Intelligent Code Commenting: CodeSouler automatically analyzes code logic and adds accurate, detailed comments. Whether it's variable naming, function descriptions, or complex logical judgments, the plugin accurately captures and generates easy-to-understand comment content, helping developers and team members quickly grasp code intentions and reduce communication costs.
Code Optimization and Refactoring:CodeSouler automatically identifies and suggests optimization points in code, such as removing redundant code, optimizing variable naming, simplifying loops, etc. It also provides instant repair suggestions and refactoring solutions for common code errors and performance bottlenecks, helping developers effortlessly improve code quality and runtime efficiency.
Test Case Generation:CodeSouler can automatically generate comprehensive test suites tailored to your codebase, covering major paths and boundary cases to ensure that your code remains stable and reliable during modifications and expansions.
Project Code Interaction Q&A:CodeSouler can analyze real-time user questions based on any project code or file content, and provide accurate answers and suggestions based on project and file content. Whether it is questions about code logic, function function, or project architecture, CodeSouler can provide timely and professional answers to help developers quickly solve problems and improve development efficiency.
🗝️Getting started
CodeSouler allows you to manipulate code in various ways, supporting the following methods:
1.Right-Click on Code Blocks
- Select the target code block you wish to operate on.
- Right-click and choose CodeSouler to add comments, optimize, refactor, etc. to the target codebase.
Follows are the functions of each menu:
Name | Description |
---|---|
Edit Code | Editing code in chat box |
Fix Grammar / Spelling | Fix grammar and spelling errors |
Fix this code | Fix selected code |
Optimize this code | Optimize selected code |
Write a docstring for this code | Write a feature description for the selected code |
Write comments for this code | Add comments to the selected code |
2. Edit Code
Selected the code, click the "Edit Code" menu or use Shortcut key Ctrl + L
. Input the requirements in the pop-up window, you can quickly modify the selected code segment.
3.CodeSouler Conversation Box:
(1) Invoke the Conversation Box VSCode
- Use Ctrl + L / Command + L to bring up the conversation window.
- With a code block selected, use Ctrl + L / Command + L to quickly add the code JetBrain
- Use Ctrl + J / Command + J to bring up the conversation window.
- With a code block selected, use Ctrl + J / Command + J to quickly add the code segment context to the conversation box.
(2)Insert code block
- Click 'Apply to current file' button, CodeSouler will help to insert the code to cursor position in current file.
(3) Operation Commands
- CodeSouler implements a complete set of operation commands. After invoking the conversation box, users can combine commands to quickly send requests.
- There are two main operators included: "/" for specific operations and "@" for referencing objects.
The complete operation methods and function descriptions are outlined in the following table:
Method | Name | Description |
---|---|---|
Operation "/" | edit | Edit selected code |
comment | Add comments to the selected code | |
share | Export the current conversation chat as markdown | |
cmd | Generate corresponding commands according to requirements | |
commit | Generate commit message | |
test | Generate unit tests for the selected code | |
codereview | Conduct code review | |
secscan | Perform a security scan of the code | |
Reference object "@" | Files | Reference files |
Code | Reference code snippets | |
Docs | Reference document | |
Git Diff | Code modification differences | |
Terminal | Quoting terminal content | |
Problems | Reference the issues in the current file | |
Folder | Reference folder | |
Codebase | Automatically identify and reference relevant code, preferentially retrieve the most recently opened files |