Skip to content

Rahul629958/codewithai

Repository files navigation

AI Code Generator and Modifier Extension for Visual Studio Code

This extension enhances your coding experience in Visual Studio Code by integrating AI-powered code generation and modification capabilities. It empowers you to quickly generate code snippets and make intelligent code edits with the assistance of artificial intelligence.

Features

  • Code Generation: Use the extension to generate code snippets for common programming tasks. The AI-powered engine understands your intent and context to produce relevant and syntactically correct code.

  • Code Modification: You can also leverage the AI capabilities to intelligently modify existing code in the editor. The AI analyzes your code and suggests enhancements, fixes, or optimizations.

Usage

  1. Install the extension from the Visual Studio Code Marketplace.

  2. To generate code:

    • Select the portion of your code where you want to insert a new snippet.
    • Right-click to open the context menu.
    • Choose the "Generate Code" option.
    • The AI will analyze the context and provide code suggestions that you can select and insert into your code.
  3. To modify code:

    • Select the code you want to modify.
    • Right-click to open the context menu.
    • Choose the "Modify Code" option.
    • The AI will analyze the selected code and propose changes that can enhance your code quality, fix issues, or optimize performance.
  4. Optionally, you can also trigger code generation and modification using the command palette by typing the corresponding commands.

Configuration

The extension provides a few configuration options that allow you to customize its behavior:

  • aiCodeGenerator.language: Specify the programming language you're working with (e.g., "javascript", "python", "java").
  • aiCodeGenerator.apiKey: Configure your AI API key for enhanced AI suggestions.

Feedback and Issues

If you encounter any issues, have suggestions, or want to report a bug, please create an issue on GitHub.

Contributions

Contributions are welcome! If you'd like to contribute to the development of this extension, please fork the repository and submit a pull request.

License

This extension is licensed under the MIT License.


Version Installs Rating

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published