Skip to content

功能请求:代码块插入按钮支持仅插入选中的代码片段 #424

@yangbobo2021

Description

@yangbobo2021

Is your feature request related to a problem? Please describe.
当前AI问答结果中,代码块的插入按钮会直接将整个代码块插入到编辑器中。这在只需要代码块中部分代码时造成了不便,用户需要额外进行删除操作。

Describe the solution you'd like
希望改进代码块插入功能:当用户选中了代码块中的部分代码片段时,点击插入按钮只插入被选中的代码片段,而不是整个代码块。如果没有选中任何内容,则保持当前行为,插入整个代码块。

Describe alternatives you've considered
目前只能手动复制所需的代码片段,或者插入整个代码块后再删除不需要的部分,这增加了操作步骤。

Additional context
这个功能可以提高用户在使用AI生成的代码时的效率,特别是当AI生成的代码块较大,而用户只需要其中一小部分时。

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions