Awesome VS Code Terminal Setup
Step 1: Install the Latest PowerShell
Download and install the latest version of PowerShell from the official website or windows store.
Step 2: Configure PowerShell as the Default Terminal
Go to Settings > Startup, set Default Profile to PowerShell, and set Default Terminal Application to Windows Terminal.
Step 3: Install Starship Prompt
Run the following commands to install Starship:
winget search starship
winget install starship
Step 4: Update PowerShell Profile to Use Starship
Open your PowerShell profile in Notepad by running:
notepad $PROFILE
This opens the profile file located at C:\Users\Thapa\Documents\PowerShell\Microsoft.PowerShell_profile
.
Add the following line to initialize Starship in PowerShell:
Invoke-Expression (&starship init powershell)
Step 5: Install Nerd Fonts for Icons
Download and install a Nerd Font from Nerd Fonts, such as JetBrainsMono Nerd Font.
Change the Powershell Font (I miss this step in video) - Terminal Settings > Go below Profiles and see PowerShell and click on it > Appearance > Font Face > Choose the font you want
In VS Code, go to Settings > Terminal and search for Integrated: Font Family. Set the font family to "JetBrainsMono Nerd Font"
for enhanced icons.
Step 6: Add Icons to PowerShell
Install the Terminal Icons module by running:
Install-Module -Name Terminal-Icons -Repository PSGallery
Open your PowerShell profile again (notepad $PROFILE
) and add:
Import-Module -Name Terminal-Icons
Now you’re all set! This setup will give your VS Code terminal an awesome, modern look with useful icons and a stylish prompt.