This bash script installs the latest VSCode version.
It contains shell commands to install VSCode from here
This script should work on most of Linux distributions.
It supports the following package managers: apt, dnf, zypper, snap, yum, nix
Sometimes the commands to install VScode can be changed by the Devs, so at some point my script will become outdated.
bash vscode-installer.sh
After executing this script, maybe you'll have to confirm the installation and enter sudo password
You can directly install VSCode from a .deb package as seen here
And unlike with directly installing .rpm (for Fedora/RHEL) the auto-updating will be available