Request for Feature: Code Indentation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by locating the Android app’s code editor and checking how it handles Enter and indentation; the issue does not name a file, test, or editor entry point. Determine how the editor supports indentation across the programming languages it offers, then define and test behavior for nested blocks and closing braces. Done means pressing Enter carries or adjusts indentation to match the surrounding code.
由索引模型根据 Issue 内容生成。
描述
In the freeCodeCamp Android application, the following problem was found: pressing Enter does not transfer indentation to the next line, and thus, there is a need to add spaces or tabs to properly format code, which might be inconvenient in case of nested functions, loops, and conditions.
The problem has been encountered only in the freeCodeCamp Android application, and thus, it is unknown if the same applies to other platforms.
Describe the solution you'd like
It would be nice to have the Auto Indentation feature implemented in the code editor in the freeCodeCamp Android application. When Enter is pressed, the indentation of the next line should be automatically calculated based on the indentation of the previous line and the structure of the code.
For instance, when writing code within a function, a loop, or a condition, the next line should be automatically indented accordingly. At the same time, indentation should change according to the entered syntax when closing braces, etc.
Describe alternatives you've considered
The current alternative is adding spaces or tabs manually to indent each line; however, it is inconvenient and interrupts the coding process.
More background
It would be easier to read the code, it would save us from having to format our code manually and it would be more comfortable for those learning to code, especially those beginners that use the freeCodeCamp Android app.
I have not tested this behavior on other platforms so I cannot confirm if this problem is Android-only or if the web version or other apps are also affected. Ideally , automatic indentation should be aware of all programming languages in the editor , following the indentation conventions of each language .
- 主要语言
- Dart
- 星标
- 589
- 派生
- 206
- 平均合并
- 3 天 14 小时
- 30 天内合并 PR
- 23
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
freeCodeCamp/mobile 的其他 Issue
-
When doing a workshop, the progress bar along the bottom treats the 50% mark as the 100%可能重新可做 关联的 PR 已关闭且未合并。 未关闭status: waiting triage type: bug
难度 2/5 1-3 小时 新手友好度 68/100
freeCodeCamp/mobile#1785 · 1 条评论 ·
维护者通常 1 天内回复
-
status: waiting triage type: bug
难度 3/5 1-2 天 新手友好度 53/100
freeCodeCamp/mobile#1912 ·
维护者通常 1 天内回复
-
status: waiting update
难度 2/5 1-3 小时 新手友好度 45/100
freeCodeCamp/mobile#1910 · 5 条评论 ·
维护者通常 1 天内回复
-
status: on the roadmap type: feature request
难度 3/5 1-2 天 新手友好度 55/100
freeCodeCamp/mobile#1880 · 1 条评论 ·
维护者通常 1 天内回复
-
Handle SPM cache in Codemagic CI/CD可能重新可做 关联的 PR 已关闭且未合并。 未关闭type: bug
难度 3/5 1-2 天 新手友好度 45/100
freeCodeCamp/mobile#1852 ·
维护者通常 1 天内回复
查看 freeCodeCamp/mobile 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 76/100
Nicolas11Leon/Tunner#278 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
ImranR98/apps.obtainium.imranr.dev#2058 · 1 条评论 ·
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ccch1mneyyy/dsh-Go#2228 ·
维护者通常 1 天内回复