Access the {% data variables.product.prodname_vscode_command_palette_shortname %} (Shift+Command+P / Ctrl+Shift+P), then start typing "rebuild". Click Codespaces: Rebuild Container.

{% indented_data_reference reusables.codespaces.full-rebuild-tip spaces=3 %}