Codeblocks changes theme color, sets fonts, code formatting - process record

1. Change the theme color of Codeblocks

The configuration method mainly refers to the method in the link below.

Codeblocks official theme color change and method

This is the background color I configured. For
Insert image description here
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:
Insert image description here
there are so many schemes to choose from.

bright yellow dark gray
Insert image description here Insert image description here
********************************************************************** ********************************************************************
default free espresso
Insert image description here Insert image description here
********************************************************************** ********************************************************************
sheer kft2
Insert image description here Insert image description here
********************************************************************** ********************************************************************
modnokai coffee modnokai night shift
Insert image description here Insert image description here
********************************************************************** ********************************************************************
modnokai night shift v2 oblivion
Insert image description here Insert image description here
********************************************************************** ********************************************************************
slush n poppies solarized dark
Insert image description here Insert image description here
********************************************************************** ********************************************************************
solarized light son of obsidian
Insert image description here Insert image description here
********************************************************************** ********************************************************************
sublime vim
Insert image description here Insert image description here

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

  • How to set font:

Insert image description here

  • 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)
Insert image description here Insert image description here
  • When setting the font size, the following warning may pop up (declaring the setting failed)
A debugging check in this application has failed

Insert image description here
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 charactersInsert image description here

Workaround: Disable the SpellChecker plugin

Insert image description here

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).

Insert image description here

Insert image description here

Reference links:

codeblock code formatting

Guess you like

Origin blog.csdn.net/quxuexi/article/details/125011580