VSCode and Windows Terminal Preview

Viewed 763

I've seen people using the cmd of their choice in VSCode but I am not sure if it's just a VSCode extension or just an implementation of the local application

Can someone shed some light ?

an example enter image description here

1 Answers

To customize Windows Terminal and the terminal in VS Code, with Powershell (7.x) you can, for instance, use Oh my Posh.

In your terminal, run:

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name Terminal-Icons -Repository PSGallery

Then, create your profile.ps1 if you have not already:

New-item –type file –force $profile

And add to your profile (location):

Import-Module posh-git
Import-Module oh-my-posh
Import-Module -Name Terminal-Icons
Set-Theme Powerline  # Or any other theme

Tip: type 'Get-PoshThemes' at prompt to see available themes

Then, get a font with a Powerline Glyph version and set it as default in terminal settings. If you need guidance to do so, refer to that answer: https://stackoverflow.com/a/67054886/11246056

Related