Plaintext actions provide text processing features for any language. The following actions are available for plaintext in the AI Coder plugin:
Text | Description |
---|---|
Chat Append Text | The Chat Append Text action allows you to quickly append text to the end of the current selection. |
Dictation | The Dictation action allows you to speak into the microphone and have the text automatically inserted into the document. This uses OpenAI's Whisper API. |
Redo Last | The Redo Last action allows you to quickly redo the last action you performed. This is useful for getting variations from the generative AI. For example, if you generate something and want to see an alternate, you can use the Redo Last action to quickly retry without having to start from scratch. |
Replace Options | The Replace Options action allows you to quickly replace selected text with one of a set of suggested options. This also captures some preceding and following context, but uses a different prompting method to suggest the options. For example, if you type ‘I had a day’ and place the cursor after 'a' and then use the Replace Options action, the plugin will provide an interactive selection UI to suggest words like ‘great’, ‘bad’, or ‘delicious’. |
The following actions are available for coding in the AI Coder plugin:
Text | Description |
---|---|
Add Code Comments | The Add Code Comments action allows you to quickly add comments to selected code. It will generally add a comment for each line with a description. This is useful for quickly documenting your code and making it easier to understand. |
Convert To... | The Convert To... action allows you to quickly convert a file to a specific language. This is useful for quickly converting larger amounts of code between languages. For example, if you have a Java file and want to convert it to Kotlin, you can use the Convert To... action to quickly convert it. |
Edit Code... | The Edit Code... action allows you to quickly edit your code based on a user-supplied directive. This is useful for quickly performing ad-hoc code transformations. For example, you can use this action to add logging statements or to quickly refactor your code. |
Describe Code and Prepend Comment | The Describe Code and Prepend Comment action allows you to quickly add a comment to your code that describes the current selection. This is useful for quickly documenting your code and making it easier to understand. |
Add Doc Comments | The Add Doc Comments action allows you to quickly add comments to your code that are formatted for documentation. In contrast to existing code tools that can generate doc comments, this action is based on the full code and can generate more accurate comments. |
Implement Stub | The Implement Stub action allows you to quickly implement a stub of a method. This is useful for quickly implementing a new method. |
Insert Implementation | The Insert Implementation action allows you to quickly insert the implementation of a comment. It attempts to process the code context and provide details about this generation context within the API call. |
Paste | The Paste action allows you to quickly paste code into your project. This text will be translated into the current language. This is useful for quickly pasting code into your project. |
Ask a question about the code | The Ask a question about the code action allows you to quickly ask a question about the code. This is useful for quickly getting help with understanding the code. The question and response are prepended to the selected code. |
Recent Code Edits | The Recent Code Edits group allows you to quickly access your most recent code edits. This is useful for quickly accessing your most recent edits. |
Rename Variables | The Rename Variables action allows you to quickly rename variables in your code. An interactive dialog is provided to select any/all/none of the rename suggestions. This is useful for quickly refactoring your code and making it easier to understand. |
Markdown Actions allow you to quickly and easily add list items, table columns, and more to your Markdown documents.
Text | Description |
---|---|
Implement As... | The Implement As... action allows you to quickly implement a markdown prompt in a specific language. This is useful for quickly implementing code in a specific language. For example, if select "find the largest file in the current directory" you can use the Implement As... action to quickly implement this idea in Bash. |
Add List Items | The Add List Items action allows you to quickly add list items to your Markdown document. It supports both ordered and unordered lists, and nested lists. |
Some actions are only available when the plugin is running in developer mode. These may be useful for debugging or development, but also contain experimental features that may not be fully functional.
Text | Description |
---|---|
Open Code Chat | The Open Code Chat action opens a chat window in a browser, allowing the user to discuss the code with ChatGPT. |
Generate Project | The Generate Project action allows you to quickly generate a new software project from a description. |
Write a Story | The Generate Story action allows you to quickly generate a new story! |
Launch Skyenet | The Launch Skyenet action opens the Skyenet interactive auto-scritping interface. |
Print PSI Tree | The Print PSI Tree action allows you to print the PSI tree for the current file. This is useful for debugging and understanding the PSI tree for a file. This is a developer tool and is only visible if the Developer Mode setting is enabled. |