2025-08-05 9:23 PM
Hello
im trying to run the code , but in the CUbeIDE there are multiple files are opening and pointing to some coding , its hazzle , tried to find a direct answer , ow to avoid this jumping file when run the code.
2025-08-06 6:29 AM
It's annoying and there's no way to fix this.
2025-08-06 6:46 AM
oh
Thank you for the information. I see—I'm currently using version 1.18. Does the new version exhibit the same behavior? It’s quite inconvenient during run and debugging, as the cursor jumps to different files and unrelated code locations. We then have to manually navigate back to the main file, which disrupts the workflow. Has ST acknowledged this issue, or are there any plans to address it in upcoming releases?
2025-08-06 6:49 AM
This is a long-standing and well-known issue:
Annoying open random file when I run my project
random file open when run the code
Jumping to random file after pressing Run button
It's not really random - it's the IDE going through the startup process before it reaches main().
2025-08-06 6:49 AM
Does the same thing happen in VSCode ?
2025-08-06 6:51 AM
It is talked about occasionally. I doubt it will ever be fixed.
@mattias norlander Any plans to fix this?
2025-08-06 7:07 AM
@Thsl wrote:We then have to manually navigate back to the main file,
Do you?
When it's set to 'Run to main', it will always end up focussed on the first line of main().
Does for me, anyhow...
2025-08-06 9:25 AM
hi
i didnt find this issue in VS code. STM32Cube IDE 1.19 has the same issue ? cos im using 1.18
2025-08-06 9:28 AM
hi
in my case curser goes to STM321xx_hal.c file and stop some line of code, then to modify my main i have to manually select the main.c file do any changes , in my code there is no errors or warnings.