如何解决CodeBlocks中的双重命令问题

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

How to fix double command problem in CodeBlocks

问题

我是新手学习C++。当我键入#include行时,我看到一个库列表,并使用键盘上的Tap键将iostream插入到我的程序中。有时它正常插入一个,但有时会重复。这是示例:
正常:include iostream;
重复:include iosiostream

我尝试在插入命令之前输入一个新行,它就不会重复了。如何在不换行且不出现问题的情况下插入它?

英文:

I'm new to C++ and trying to learn it. When I type the #include line, I saw a list of libraries and I use the Tap on keyboard to insert the iostream to my program. Sometime it goes normal and insert only one, but sometime it double. Here the exam:
Normal: include iostream;
Double: include iosiostream

I tried to enter a new line then insert the command and it didn't double. How can I insert it without new line and without the problem?

(Sorry for missing salt in the question)

答案1

得分: -1

你可以尝试调整CodeBlocks自动补全的设置。
要做到这一点,您可以转到:
(设置) -> (编辑器)...然后进入"代码完成",以便您可以检查自动库插入的选项。重要的是要检查是否有任何可能导致这种重复的设置。
如果问题仍然存在,我建议更新或重新安装CodeBlocks,或者使用不同的代码编辑器。

英文:

You can try messing with the settings in CodeBlocks autocompletion.
For that you can go to:
(Settings) -> (Editor)... and then go to "Code Completion" so you can check the options for automatic library insertion. It is important to check for any settings that may be causing this duplication.
If the problem persists I would suggest updating or reinstalling CodeBlocks or using a different code editor.

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

发表评论

匿名网友

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

确定