Story Coder is a powerful Visual Studio Code extension that leverages StackSpot AI to inject hypercontext and generate advanced code efficiently. Simplify your development process by defining your application's context and generating custom code with just a few clicks.
Key Features
Hypercontext Injection: Automatically adds relevant context to the code generation process.
Advanced Code Generation: Create different types of code (e.g., tests, endpoints, etc.) based on the selected context.
Credential Manager: Securely configure and manage your API credentials.
Seamless Integration: Fully integrated with Visual Studio Code for a smooth user experience.
Diff Viewer: Compare generated files with the original ones.
Progress Feedback: Visualize the progress of multi-step commands.
How to Use
Set Up Credentials:
Access the Credentials panel and input your API credentials (Client ID, Client Secret, and Realm).
Tip: Use the Secrets Manager panel to securely store and manage your credentials.
Follow the steps below to use the main features of Story Coder:
1. Open the Extension
Open your project in Visual Studio Code.
Launch the Story Coder extension from the Activity Bar.
2. File Tree Navigation
The File Tree panel allows you to explore your project files.
To open the file tree:
Launch the extension.
Navigate to the File Tree panel.
3. Save a Snapshot
Save a selection of files for later use:
Select the files you want to save as a snapshot.
Click on the Save Snapshot button.
Provide a name for the snapshot and confirm.
4. Load a Snapshot
Load a previously saved snapshot:
Open the Snapshots panel.
Select the snapshot you want to load.
Click on the Load Snapshot button.
5. Run Quick Commands
Automate tasks using quick commands:
Open the Quick Commands panel.
Select the command you want to run.
Follow the on-screen instructions to complete the process.
6. View File Differences
Compare generated files with the original ones:
After generating a file, click on the View Diff button.
The diff viewer will open, showing the differences between the files.
7. Save or Replace Files
Save generated files to your project:
Click on the Save or Replace File button.
Confirm the action to save the file in the desired location.
8. Cancel Execution
Cancel an ongoing operation:
Click on the Cancel Execution button.
The operation will stop, and you will be redirected to the File Tree panel.
Requirements
StackSpot Account: Ensure you have valid credentials to access StackSpot AI services.
Internet Connection: Required for token generation and code generation requests.
Extension Settings
This extension contributes the following settings:
story-coder.focus: Enable/disable the extension.
Known Issues
Token Expiration: Ensure your tokens are valid. If they expire, generate new tokens using the Credentials.
File Selection: Only files within the workspace can be selected as context.
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests on the official repository.
Support
If you encounter any issues or have questions, contact us via the official repository or email us at.