英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论