Skip to main content
Explorer
October 24, 2024
Question

How to move a local VSCode STM32 project to different location

  • October 24, 2024
  • 2 replies
  • 1114 views

 

Hi,

I'm quite new to VSCode but I really like it.

Now I need to copy a working local STM32 project in VSCode (with STM32 extension) to a different PC.

I tried to copy the complete project folder (including all files and folder like .vscode folder, build folder, .ioc-file and so on) and then adapted all paths I could find, but no luck. Nothing works anymore. Neither CubeMX code regeneration nor building or debugging.

What is the right way to do this, to get a completely working local copy at a different location?

Thanks!

 

    This topic has been closed for replies.

    2 replies

    ST Employee
    October 31, 2024

    Hello @ETX

    On the new PC, all tools and extensions must be installed and set in settings.json and launch.json

    could you share what errors you're getting? 

    ETXAuthor
    Explorer
    October 31, 2024

    Hi Sarra,
    thanks for your reply.
    I managed to move the complete project folder to a different location with notepad++, by using Find&Replace for the folder paths on all files of the complete project folder. Now building and debugging is working fine.
    This might be quite awkward, but I'm new to vscode and didn't find a better way for moving or copying a vscode project folder (local without git) to a different location or machine.
    Any easier procedure is appreciated.