DevEco Studio中 关闭/开启 代码保存界面自动更新

例如 我们这里有这样一个案例
在这里插入图片描述
这里 我们直接将 字体的 50 改为 30
我们直接 Ctrl + S 保存代码 效果立马就改了
在这里插入图片描述
很明显 这是个热更新的服务

但就例如 我们开发 java比较大的项目 我们不希望它自动更新 免得内存扛不住 我们可以看编辑器上面有一个像小插座一样的东西 目前是一个通电的状态
在这里插入图片描述
我们点一下 将它这个通电状态取消掉
在这里插入图片描述
我们再把30 改回 50 保存之后 就会发现 哦 没有自动更新哦
在这里插入图片描述
那么 有时候卡顿了 我们也可以如下图指向位置点击手动更新
在这里插入图片描述

您好,以下是使用DevEco Studio开发注册与登录界面代码示例: 注册界面代码: <?xml version="1." encoding="utf-8"?> <Page xmlns="http://schemas.huawei.com/201/appcompability" xmlns:ohos="http://schemas.huawei.com/res/ohos" ohos:height="match_parent" ohos:width="match_parent" ohos:background_element="#FFFFFF"> <StackLayout ohos:height="match_content" ohos:width="match_parent" ohos:orientation="vertical" ohos:padding="50vp"> <TextField ohos:height="match_content" ohos:width="match_parent" ohos:hint="请输入用户名" ohos:margin_bottom="20vp"/> <TextField ohos:height="match_content" ohos:width="match_parent" ohos:hint="请输入密码" ohos:margin_bottom="20vp"/> <TextField ohos:height="match_content" ohos:width="match_parent" ohos:hint="请再次输入密码" ohos:margin_bottom="20vp"/> <Button ohos:height="match_content" ohos:width="match_parent" ohos:text="注册"/> </StackLayout> </Page> 登录界面代码: <?xml version="1." encoding="utf-8"?> <Page xmlns="http://schemas.huawei.com/201/appcompability" xmlns:ohos="http://schemas.huawei.com/res/ohos" ohos:height="match_parent" ohos:width="match_parent" ohos:background_element="#FFFFFF"> <StackLayout ohos:height="match_content" ohos:width="match_parent" ohos:orientation="vertical" ohos:padding="50vp"> <TextField ohos:height="match_content" ohos:width="match_parent" ohos:hint="请输入用户名" ohos:margin_bottom="20vp"/> <TextField ohos:height="match_content" ohos:width="match_parent" ohos:hint="请输入密码" ohos:margin_bottom="20vp"/> <Button ohos:height="match_content" ohos:width="match_parent" ohos:text="登录"/> </StackLayout> </Page>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值