Skip to main content

🪄StarShip CodeSouler——Your AI Coding Mate

intro

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

  1. 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.

  2. 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.

  3. 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.

  4. 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:

NameDescription
Edit CodeEditing code in chat box
Fix Grammar / SpellingFix grammar and spelling errors
Fix this codeFix selected code
Optimize this codeOptimize selected code
Write a docstring for this codeWrite a feature description for the selected code
Write comments for this codeAdd 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:

MethodNameDescription
Operation "/"editEdit selected code
commentAdd comments to the selected code
shareExport the current conversation chat as markdown
cmdGenerate corresponding commands according to requirements
commitGenerate commit message
testGenerate unit tests for the selected code
codereviewConduct code review
secscanPerform a security scan of the code
Reference object "@"FilesReference files
CodeReference code snippets
DocsReference document
Git DiffCode modification differences
TerminalQuoting terminal content
ProblemsReference the issues in the current file
FolderReference folder
CodebaseAutomatically identify and reference relevant code, preferentially retrieve the most recently opened files