Feature Suggestion: Code Folding (Accordion Style) in Prompt Input Field

Hello ai.studio Developers / Team,

I’m an active user and a big fan of the tool you’ve created. I’d like to share an idea that I believe could significantly enhance the user experience, especially for those who frequently work with code snippets in their prompts.

The Suggestion:

This is about the prompt input field. When we need to paste or write multi-line code, the current view can become quite cumbersome and make it difficult to navigate the entire prompt, especially if there are textual instructions accompanying the code.

My proposal is to implement code block folding functionality , similar to how it’s done in many IDEs or text editors (often referred to as an “accordion” style).

How it could work:

  • The system could automatically detect code blocks or recognize them based on specific markup (e.g., triple backticks ).

  • A small icon (e.g., a triangle, +/-) could appear next to or above such a block, allowing the user to click to collapse or expand it.

  • When collapsed, it might display only the first line of code, or a placeholder like [… code …] or [+] Code Block (X lines).

Benefits of this feature:

  1. Improved Readability: Long prompts would become much more compact and easier to scan. Users could quickly get an overview of the entire prompt’s structure.

  2. Space Saving: This would be particularly useful when dealing with large code fragments that can take up a lot of screen real estate.

  3. More Comfortable Workflow: Editing and navigating through the prompt would be simplified, making interaction with the input window significantly more pleasant and efficient.

I’m confident that such a feature would be highly valued by many users who often integrate code into their AI queries. This seemingly small improvement could be a significant “innovation” in terms of your interface’s usability.

Thank you for your time and for the great work you’re doing! I hope you’ll consider this suggestion.