2025-02-19 01:33 AM
Hello
I setup the IDE with the code format that I wanted under project preferences. Then I right click on the source code (*.c .h or dir), then get the context menu and select "Source"->"format. This seems to reformat the code as expected, but shouldn't it allow me to save the file in the new format (Save button disabled)? Not until i add a space somewhere in the file will the save button appear. Now, if I select a directory and press source->format, do I have to manually add a space to each of the files (100s) so I can save all the files? Is this a bug, or am i using it incorrectly?
thanks
Matthew
2025-02-19 05:22 AM
If you select a directory and format all files, the files are automatically saved. If you format a single file with the Source -> Format menu option, it will need to be saved only if it is modified, else the Save option will be disabled.
2025-02-19 07:10 AM
Now, for some reason when I select the directory and perform Source->Format, I get an error:
BTW, do you know where the CubeIDE log is kept?
I tried it a couple of times, and same error appeared.
2025-02-19 08:26 AM - edited 2025-02-19 08:26 AM
Reload CubeIDE and try again. Probably it is a transient error.
The log file is at:
<workspace_location>/.metadata/.ide.log
2025-02-19 08:38 AM