STM32CubeIDE: 如何在保存 .ioc 文件时禁用自动重新生成代码

huangapple go评论52阅读模式
英文:

STM32CubeIDE: How to disable auto re-generation the code when .ioc saved

问题

我已经勾选了保存 .ioc 文件后重新生成代码的“记住我的答案”选项。现在我如何禁用它?

英文:

I have checked the "Remember my answer" for re-generating code after saving the .ioc file. How can I disable it now?

答案1

得分: 2

如果我理解正确,您想让STM32CubeIDE忘记“记住我的决定”关于重新生成代码的选择。

我不知道在GUI中是否有这样的方法。我找到的唯一解决方案(在进行了相当多的调查后)是编辑工作区目录下的以下文件(在执行此操作时最好关闭STM32CubeIDE):

<WORKSPACE_FOLDER>/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.st.stm32cube.common.preferences.prefs

该文件应该有一行写着

DeviceConfigurationTool.AskToDoCodeGenerationOnIocSave=false

删除该行,然后在保存.ioc文件后,您应该重新开始收到有关生成代码的问题。

英文:

If I understand you correctly, you want STM32CubeIDE to forget the "remember my decision" choice about re-generating code.

I do not know if there is a way to do this in the GUI. The only solution I found (after a considerable amount of investigation) is to edit the following file under the workspace directory (it is probably a good idea to close STM32CubeIDE while doing this):

   &lt;WORKSPACE_FOLDER&gt;/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.st.stm32cube.c
ommon.preferences.prefs

The file should have a line saying

DeviceConfigurationTool.AskToDoCodeGenerationOnIocSave=false

Remove that line and you should start getting the question about generating code again after saving the .ioc file.

huangapple
  • 本文由 发表于 2023年5月17日 14:14:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76269041.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定