0%

How to move your vscode from old laptop to new laptop

Before you move the whole development, just login the vscode with your github account and sync all your settings to the cloud.

  1. Copy all your project folder to new laptop
  2. Install vscode and login your github account and sync
  3. open your powershell and run following commmand
    1
    ssh-keygen -t rsa -b 4096 -C “[email protected]
  4. open folder C:\Users\yourUserName\.ssh and then open a file named id_rsa.pub with notepad or your favorite edit apps, then copy all content in this file to your clipboard.
  5. open your github -> settings -> SSH and GPG keys -> New SSH key
  6. copy all contents to the “key” field and put your new laptop name to the “title” field then save
  7. install git for windows and set up your git user information
    1
    2
    git config --global user.name "Your Name"
    git config --global user.email "[email protected]"
    if you forget your git user information on your old laptop use this
    1
    git config --list
  8. restart your vscode and enjoy

if your laravel project can not run after you move to new laptop you just clear the optimize

1
php artisan optimize:clear