Windows Subsystem for Linux (WSL)

install wsl

wsl --install
wsl --install -d <Distribution Name>
// to set default wsl version 
wsl --set-default-version 2
//set default distribution
wsl -s Ubuntu-20.04

get all avialable or online Distributions

wsl -l
// or 
wsl --list --online

shutdown and boot

//boot specific distribution
wsl -d ubuntu-20.04
//to shutdown all distributions
wsl --shutdown 

you can install windows terminal application for esier work

visual studio connection with remote linux server

at the first you must install tools to can build cmake + compilers in your linux distribution

sudo apt update
sudo apt install g++ gdb make ninja-build rsync zip
//in order to work remotely 
sudo apt install openssh-server
sudo service ssh start
sudo systemctl enable ssh //start service on linux startup

for more information read this and this


Vcpkg helps you manage C and C++ libraries on Windows, Linux and MacOS. This tool and ecosystem are constantly evolving, and we always appreciate contributions!

//for windows
> git clone
> .\vcpkg\bootstrap-vcpkg.bat
> set PATH=vcpkg_folder;%PATH%	
//for linux you need g++
$ sudo apt-get update
$ sudo apt-get install build-essential tar curl zip unzip
$ sudo apt-get install -y pkg-config
$ git clone
$ ./vcpkg/

Search , Install and remove packages

.\vcpkg\vcpkg search [search term]
.\vcpkg\vcpkg install [packages to install]
.\vcpkg\vcpkg install [package name]:x64-windows
.\vcpkg\vcpkg install [packages to install] --triplet=x64-windows
.\vcpkg\vcpkg remove [packages to install]

In order to use vcpkg with Visual Studio, run the following command (may require administrator elevation):

.\vcpkg\vcpkg integrate install
.\vcpkg\vcpkg integrate remove

In order to use vcpkg with CMake outside of an IDE, you can use the toolchain file:

> cmake -B [build directory] -S . -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake
> cmake --build [build directory]

for more visit this page