Visual Studio Code
VS Code is good for organizing files and has better performance in lower-end devices.
Installation
- Download the ZIP from https://code.visualstudio.com/Download and put it in
Downloads - Set the version for scriptspowershell
$version="1.94.2" - Extract the ZIP to
dotbinpowershell7z x -y ~/Downloads/VSCode-win32-x64-$version.zip "-o$HOME/dotbin/extra/portable/vscode" - Configure linkpowershell
Add-Content -Path ~/dotbin/extra/portable/link -Value "shim:vscode/bin/code.cmd" sudo dotbin-link - Create Portable Data Directorypowershell
mkdir -p ~/dotbin/extra/portable/vscode/data - Verify the installationpowershell
code --version
Configuration
Launch VS Code:
powershell
codeFont
Open Settings, search for terminal.integrated.fontFamily, and change to Hack Nerd Font
Terminal Profile
Search for terminal.integrated.profiles. Under Windows, select "Edit in settings.json".
Delete the auto-generated profiles, and add the PowerShell 7 profile as follows:
json
"terminal.integrated.profiles.windows": {
"PowerShell": {
"path": [
"${env:USERPROFILE}\\dotbin\\extra\\portable\\pwsh\\pwsh.exe",
],
"args": ["-NoLogo"],
"icon": "terminal-powershell"
}
}Save and close settings.json. Then change terminal.integrated.defaultProfile.windows to PowerShell