I use the package from VsCode download page (.tar.gz), then create a desktop file
nano .local/share/applications/vscode.desktop
[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/home/minh/VSCode-linux-x64/bin/code --no-sandbox --unity-launch %F
Icon=/home/minh/VSCode-linux-x64/resources/app/resources/linux/code.png
Type=Application
StartupNotify=false
StartupWMClass=VSCode
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;
Actions=new-empty-window;
Keywords=vscode;
[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/home/minh/VSCode-linux-x64/bin/code --no-sandbox --new-window %F
Icon=/home/minh/VSCode-linux-x64/resources/app/resources/linux/code.png
This is the folder where i extracted the files /home/minh/VSCode-linux-x64