espressif / idf-eclipse-plugin

Espressif-IDE (based on Eclipse CDT) for ESP-IDF CMake based projects 4.x and above
https://docs.espressif.com/projects/espressif-ide/en/latest/index.html
Eclipse Public License 2.0
313 stars 121 forks source link

Custom linewidth formatter not applied with C++ LSP editor (IEP-1290) #1016

Open DigKleppe opened 4 months ago

DigKleppe commented 4 months ago

The formatter always formats to 80 characters with the default LSP editor. When using the standard C editor formats to the wanted width. Cannot make the old C/C++ editor default.

Screenshot from 2024-07-04 12-09-41

Espressif-IDE Product Information: productInfo.log Espressif > Product Information (Copy content from the console and attach as a file)

kolipakakondal commented 4 months ago

Hi @DigKleppe

LSP editor uses .clang-format from the project root for formatting. Please check this post here https://github.com/espressif/idf-eclipse-plugin/issues/1011#issuecomment-2202018650