1. Change the theme color of Codeblocks
The configuration method mainly refers to the method in the link below.
This is the background color I configured. For
the code of the color scheme, it is best to download the official color code from the codeblocks official website, but it seems difficult to load it from that official website. For the convenience of downloading and searching, I will share the code file I downloaded here.
Network disk link: https://pan.baidu.com/s/1vO1P3IxnRZd-HkZuU_1caQ?pwd=kxzz
After the configuration is completed, you can choose different color schemes according to your own preferences:
there are so many schemes to choose from.
bright yellow | dark gray |
---|---|
********************************************************************** | ******************************************************************** |
default | free espresso |
********************************************************************** | ******************************************************************** |
sheer | kft2 |
********************************************************************** | ******************************************************************** |
modnokai coffee | modnokai night shift |
********************************************************************** | ******************************************************************** |
modnokai night shift v2 | oblivion |
********************************************************************** | ******************************************************************** |
slush n poppies | solarized dark |
********************************************************************** | ******************************************************************** |
solarized light | son of obsidian |
********************************************************************** | ******************************************************************** |
sublime | vim |
The shared file comes from a post on the codeblocks official forum,
a discussion about theme colors in the codeblocks forum.
2. Font setting problem
-
Which font makes the code look better depends on the person, but consolas or boldface are both fine.
consolas (size 12) | Black body (size 12) |
---|---|
A debugging check in this application has failed
Click the stop button and the program will automatically exit. Click the Continue button, and this pop-up window will pop up until you can modify the font size. I refer to an article that sets the font size to an even number, such as 12.
Reference links:
https://blog.csdn.net/qq_19696893/article/details/112747701
3. The problem with red wavy lines below Chinese characters
Workaround: Disable the SpellChecker plugin
Reference links:
There are red wavy lines under Chinese characters in code blocks. How to solve them?
4. One-click formatting method of code:
The function of a Source code formatter (AStyle) plug-in is used. You can right click -> Format (AStyle).