What Do I Do If the Maximum Line Width of the Code Is Inconsistent with the Reference Value?

Symptom

In a file under the project directory, the maximum line width of the code is different from the reference value. The default reference value is 120. See Figure 1.

Figure 1 Inconsistency between the maximum line width of the code and the reference value

Solution

  1. On the MindStudio IDE home page, choose File > Settings > Editor > Color Scheme > Color Scheme Font. The font selection page is displayed. See Figure 2.
    Figure 2 Color Scheme Font
  2. Select a font that does not match the current font from the Font drop-down list box and choose Apply > OK. Return to the file in the project directory and check whether the maximum line width of the code is the same as the reference value.
    • If yes, no further action is required.
    • If no, repeat 1 to 2 until the maximum line width of the code is the same as the reference value.

      If you cannot find a proper font among the equal-width fonts, deselect Show only monospaced fonts and select another font.