# A way to make UE5 HotReload from vscode under Linux

**URL:** <https://forums.unrealengine.com/t/a-way-to-make-ue5-hotreload-from-vscode-under-linux/829465>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [March 28, 2023, 7:16am UTC](https://forums.unrealengine.com/t/a-way-to-make-ue5-hotreload-from-vscode-under-linux/829465 "2023-03-28T07:16:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suiyuex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@suiyuex](https://forums.unrealengine.com/u/suiyuex)\
**Post date:** [March 28, 2023, 7:16am UTC](https://forums.unrealengine.com/t/a-way-to-make-ue5-hotreload-from-vscode-under-linux/829465/1 "2023-03-28T07:16:28Z")

</div>

If you build your project within vscode under Linux, you should noticed that the UE5 does not Hot Reload the newly c++ code.

And after some researches, I found a solution to resolve this issue.

First, You need install the [vscode extension](https://marketplace.visualstudio.com/items?itemName=augustocdias.tasks-shell-input).

Then, Generate vscode project file

And edit your `.vscode/tasks.json` file

```json
{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "MyProjectEditor Linux Development Build",
      "group": "build",
      "command": "Engine/Build/BatchFiles/Linux/Build.sh",
      "args": [
        "-ModuleWithSuffix=${workspaceFolderBasename},${input:randomNumber}", // Add this line
        "MyProjectEditor",
        "Linux",
        "Development",
        "/Ly/code/games/MyProject/MyProject.uproject",
        "-waitmutex"
      ],
      "problemMatcher": "$msCompile",
      "type": "shell",
      "options": {
        "cwd": "/Ly/apps/unreal-engine"
      }
    }
  ],
  "inputs": [ // And add this field
    {
      "id": "randomNumber",
      "type": "command",
      "command": "shellCommand.execute",
      "args": {
        "command": "echo $(( ( RANDOM % 1000 ) + 1000 ))"
      }
    }
  ]
}

```

After these steps, hot reload should works perfectly.  
This works for me with UE\_5.1.1 under Arch Linux  
Let me know if you have any other issue.  
Sorry, my English is not good.

---

<div class="post-metadata">

**Author:** ![RemRemRemRe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/remremremre/32/974428_2.png) [@RemRemRemRe](https://forums.unrealengine.com/u/RemRemRemRe)\
**Post date:** [August 31, 2024, 12:12pm UTC](https://forums.unrealengine.com/t/a-way-to-make-ue5-hotreload-from-vscode-under-linux/829465/2 "2024-08-31T12:12:51Z")

</div>

Thanks for you information.

Did you know how to enable it in Rider? Will try it myself anyway…
