Skip to content

Feature Request: Smart Copy & Auto-Split AI Code Blocks #2847

Description

@ARYAKLEGO

Check for existing issues

  • Completed

Describe the feature

1. Feature: "Copy Code Only" / Smart Copy

  • Description: Please add a feature to automatically extract and copy only the source code from an AI text response, filtering out any conversational or explanation text.
  • Example: If the text is "Berikut kodenya: ...", Acode should only copy the <html> part and automatically remove the "Berikut kodenya:" text.

2. Feature: Auto-Split Code & Auto-Create Files

  • Description: When pasting a combined AI response that contains multiple code blocks (HTML, CSS, and JavaScript), Acode should automatically split them into their respective files instead of pasting them into a single file.
  • How it should work:
    • Automatically detect the language tags (HTML, CSS, JS).
    • Create separate files automatically (e.g., index.html, style.css, script.js).
    • Automatically inject the linking tags (<link rel="stylesheet" href="..."> and <script src="..."></script>) into the HTML file so the project runs immediately without manual linking.

Why these features are useful:
It drastically speeds up the workflow when working with AI assistants, eliminating the tedious process of manual file creation, code separating, and linking.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions