我已经厌倦了每天做事git add
,git commit
我知道在 Linux 中你可以使用 1 行命令编辑 bashrc 但由于我使用 Windows,我很难为
Fucntion gcd {
Insert("git commit")
}
Set-Alias gcm gcd
Run Code Online (Sandbox Code Playgroud)
但我收到一个错误
Set-Alias : Alias is not writeable because alias gcm is read-only or constant and cannot be written to.
Run Code Online (Sandbox Code Playgroud)
我也尝试过不使用插入关键字,即使没有函数仍然出现错误
我已经从 vsCode 切换到 android studio 来处理我的 flutter 项目,因为我认为在 android studio 中阅读代码感觉很舒服
虽然在 vs code 中,当我保存文件时,文件会被格式化,并且它会const
在我的小部件需要的地方添加关键字
问题
在 android studio 中,代码既不会被格式化,也不会在需要的地方添加 const 关键字
请帮忙解决2个问题