小编Abd*_*eem的帖子

如何为 git 命令添加 create powershell 别名

我已经厌倦了每天做事git addgit 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)

我也尝试过不使用插入关键字,即使没有函数仍然出现错误

git powershell powershell-2.0

5
推荐指数
1
解决办法
1580
查看次数

在Android Studio中的flutter中添加auto-Const

我已经从 vsCode 切换到 android studio 来处理我的 flutter 项目,因为我认为在 android studio 中阅读代码感觉很舒服

虽然在 vs code 中,当我保存文件时,文件会被格式化,并且它会const在我的小部件需要的地方添加关键字

问题

在 android studio 中,代码既不会被格式化,也不会在需要的地方添加 const 关键字

请帮忙解决2个问题

android-studio flutter

5
推荐指数
2
解决办法
3565
查看次数