Skip to main content
JBonn
Associate III
August 13, 2025
Question

Stm32Cube IDE character spacing not consistent

  • August 13, 2025
  • 2 replies
  • 309 views

Running STM32CubeIDE versions 1.18.1 and 1.19.0

i

static char *Audio3D[] = { // Main Settings display

"THERE ARE 15 VOLUME ",

IDE version 1.18.1 displays a 21 character line of code with the quotes one ontop of the other.

static char *Temp2D[] = {

" TEMPERATURE ",

" CELSIUS ",

" FAHRENHEIT "

};

 

IDE version 1.19.0 displays a 21 character line of code with the quotes not lined up

Makes it extremely hard to see if hundreds of lines of code are all 21 characters.

static char *Temp2D[] = {

" TEMPERATURE ",

" CELSIUS ",

" FAHRENHEIT "

};

 

2 replies

TDK
Super User
August 13, 2025

> quotes one ontop of the other.

> quotes not lined up

Maybe a screenshot would be more descriptive here, yes?

Check that the file is pure UTF-8 characters and encoding is set correctly. Font is monospaced, should display the file contents accurately.

"If you feel a post has answered your question, please click ""Accept as Solution""."
JBonn
JBonnAuthor
Associate III
August 15, 2025

Please tell me How to set encoding. How to make fonts be monospaced.

Lead II
August 15, 2025

@JBonn wrote:

Please tell me How to set encoding. How to make fonts be monospaced.


Properties->Resource->Text File encoding (then set to UTF-8)

Preference->general->Appearance->Colors and Fonts->C/C++/Editor 

 

Please format your code in your posts: https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."