If Vscode is used at your end, you can use the link Run leaf / VSCode in Windows environment without VM (Experimental) - VSCode - Legato Forum for reference.
your requirement will need a docker container running on your host and the Dev Container extension installed in your Vscode.
Rest instructions are similar to the above link, tried it sometime back and it worked smoothly without any issues.