Quick Command
Quick Commands are predefined actions that allow you to send quick information to the LLM. By using the mouse's right button, you can easily select a Quick Command.
The Quick Command Built In offers five predefined functions that you can use on your code.
How it works
A Quick Command is a predefined prompt to generate better answers for you. It allows you to select a part of your code and choose one action that suits your needs. This feature is designed to make programming more accessible and efficient.
Usage
Follow the instructions to use a Quick Command. You will see the answers on your StackSpot AI prompt or inline code.
-
Select a part of your code and click on the right button of the mouse;
-
Then select 'StackSpot AI';
-
Select one of these available options:
- Add tests for this code
- Document this code
- Explain the code to me
- Is there any code smell in this code?
- Refactor this code
See an example with the ‘Explain the code to me’:
The output will be: