1、进入 applications
cd /usr/share/applications
2、创建文件
sudo vim idea.desktop
[Desktop Entry] Encoding=UTF-8 Version=1.0 Name=IntelliJ IDEA GenericName=Java IDE Comment=IntelliJ IDEA Exec=/usr/local/lib/idea/bin/idea.sh Icon=/usr/local/lib/idea/bin/idea.png Terminal=false Type=Application Categories=Development;IDE
vim idea.desktop
[Desktop Entry] Categories=GNOME;DesktopSettings; Name=VSCode Name[zh_CN]=VSCode Name[en]=VSCode Name[en_US]=VSCode GenericName=VSCode Comment=VSCode Exec=/opt/vscode/bin/code Terminal=false Icon=/opt/vscode/resources/app/resources/linux/code.png Type=Application StartupNotify=true Hidden=false X-KDE-SubstituteUID=false X-KDE-Username=owen