Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change terminal in visual studio code by iTerm2 with Powerlevel10k

I'm trying to change my VScode terminal. I have followed this tutorial.

My iTerm terminal has been changed perfectly : enter image description here

I tried to edit my settings.json files in VScode like this :

{
    "terminal.external.osxExec": "iTerm.app",
    "terminal.integrated.shell.osx": "/bin/zsh",
    "terminal.integrated.fontFamily": "'SourceCodePro+Powerline+Awesome Regular'"
}

But i got this different result :

enter image description here

I can't understand why the parameters are not the same and some images do not pass in VScode.

like image 543
Jonor Avatar asked Mar 03 '20 10:03

Jonor


People also ask

How do you change terminals in VS Code?

Once the cursor is in the terminal section you can use ctrl+x ctrl+up or ctrl+x ctrl+down to cycle through the active terminals (note that moving between on-screen split terminals is done with ctrl+x left or ctrl+x right ).

How do I change the terminal name in Visual Studio?

With the terminal you want to name active, use the command menu (again, command+shift+p ) and start typing “terminal: rename”, and select that option. Type the name you want and press return/enter and voilá. (You could also add a keyboard shortcut for this command: workbench.

How do I add a nerd font to VS Code terminal?

You can change the terminal font setting for VS Code and use a Nerd Font as suggested in Starship's documentation. To do that either go to the settings and search for Terminal Font and update the value or you can add this to your settings. json . "terminal.


1 Answers

Finally, the "terminal.integrated.fontFamily" points out (apparently) the non-ASCII font. The settings.json file from Visual Studio Code should be :

{
  "terminal.external.osxExec": "iTerm.app",
  "terminal.integrated.defaultProfile.osx": "zsh",
  "terminal.integrated.fontFamily": "MesloLGS NF"
}
like image 130
Jonor Avatar answered Dec 02 '22 13:12

Jonor