What plugins can provideComment the code (Text editor context menu , CodeLens , ToolBar--Batch Comment )You can comment on code snippets, as well as classes, methods. If you comment from CodeLens, the comment will have a rich visual experience
Explain the code (Text editor context menu , CodeLens)When you get the code you are not familiar with, you can use this method to quickly understand the code, and the AI will explain the function and principle of the code for you. Screenshots CodeLens CodelLens will display the last AI reply in the code explanation chat between you and the AI VS Window Improve the code (Text editor context menu , CodeLens)This feature can quickly optimize your code, resolve bugs, and find bugs. and generate the correct code. You can click the 'Apply' button in the window to quickly replace the AI-generated code. Note that carefully discern the code generated by the AI, as it may be wrong. Screenshots VS Window Code completion (Text editor context menu)You can write the code requirements you want to write in natural language in the IDE, and select your requirements. Select the code, right-click and select Complete(CSharpAIStudio), click ask, and wait for a response. The generated code is inserted into your mouse position. You can use the attributes, types, and methods in your current solution in your requirements. to improve code quality. Save your chat with the AI to the solution (can be managed under version control)Save the conversation file to Json so that the whole team can reuse the conversation as much as possible and avoid repetitive token Use your custom prompt (Only Azure OpenAI)
Use your custom model (Starting with Ver1.0.0.30)
Get started1 Fill in your Azure OpenAI information
2 Decide whether to save the conversation to the solution
3 Decide whether to display codelens
4 Open the solution and when the CodeLens is displayed, you can get startedOptionsYou can see the specific descriptions of each option in VS, and I'm going to explain two of them separately here RelatedCodes (Explain,Improve,Complete,Comment)Explain,Improve,Comment
###Complete
Extend RelatedCodes (Explain,Improve,Comment)
Example
#CodeLens ##The extension contains three CodLens indicators. ###Charpais Studio this CodeLens will have four different icons to indicate the current code node state:
###C# Extend Related Code Unlike the 'references' of VS, the references show who called you, 'C# Extend Related Code' shows who you called
###C# Extend Related Code(new) It's a whole new view of 'C# Extend Related Code' Because of the differences in the way you look up, the data shown is not exactly the same. It also supports jumping files, which you can double-click on the data to jump.
You can decide whether to turn on these codelenses or not in the options
#Text editor context menu In a text editor (C# code only), you can select a subset of text to execute these commands. But there are a few caveats. When you choose code that happens to be the full code of a method or class, it's the equivalent of starting from CodeLens. #Solution context menu You can use both buttons separately to clear/overload the conversation history. In most cases, it shouldn't be needed. Note unless you start a new conversation after clearing (codelens, solution), any chat history will not be lost when you reopen the solution or reload. ImportantExplain, Improve will default to using the current code as the dialogue, and different codes will have different dialogues, which is expected and not a bug This plugin uses Azure OpenAI by default PrivacyThis extension doesn't have any other collection activity, other than the Azure OpenAI SDK. OtherIf you have any comments or suggestions, please leave a message in the Q&A. I really hope this extension can help you better. |