AppFlowy-IO / AppFlowy-IO/AppFlowy

[FR] Add more functionality to code blocks in addition to a shortcut key

未关闭
#5,881 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
code-block editor-plugin flutter-only
主要语言
Dart
星标
76.6k
派生
6k
PR 合并指标
30 天内没有已合并 PR

描述

### Description

Currently, code blocks in most applications are pretty standard with a copy button and the ability to change the coding language with the use of a drop-down button as in Appflowy. Adding the line numbers to the left of the code block is a great feature. My suggestion here is to please enhance and add further functionality to the code blocks themselves to make this app stand out over the rest. I am sure a vast majority of users store code as YML files or other ENV's and because of this I believe it would be great to add the ability to toggle viewing spacing in the code blocks like in VS Code. Other great options would be to further enhance code blocks by adding toggle options in settings for this and perhaps allow resizing of the code boxes and appearance. The option to lock the blocks themselves from editing would also be a welcome update. Thank you for your time and I hope you take my input into consideration.

### Impact

Code Blocks revamp. More options for code blocks is better.

### Additional Context

_No response_

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。