'Running VS Code in WSL in folder at startup

Is there any way I can automate this simple thing I am doing at every PC startup:

  1. Go to Path
  2. Open a terminal , switch to WSL
  3. Run code . to open Visual Studio in that folder at Path

Is there any way I can run Visual Studio Code from WSL in target folder at startup automatically?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source