Customize and optimize the VsCode terminal style (prompt highlight)

open settings

First open Preferences: Open Settings (json)

  • ctrl+shift+p open (windows)
    insert image description here

  • cmd+shift+p open (macos)
    insert image description here

Add the following configuration:

These colors can be modified by yourself

	"workbench.colorCustomizations": {
    
    
		"terminal.background": "#292A44",
		"terminal.foreground": "#F1EFF8",
		"terminalCursor.background": "#F1EFF8",
		"terminalCursor.foreground": "#F1EFF8",
		"terminal.ansiBlack": "#292A44",
		"terminal.ansiBlue": "#2DE0A7",
		"terminal.ansiBrightBlack": "#666699",
		"terminal.ansiBrightBlue": "#2DE0A7",
		"terminal.ansiBrightCyan": "#8EAEE0",
		"terminal.ansiBrightGreen": "#6DFEDF",
		"terminal.ansiBrightMagenta": "#7AA5FF",
		"terminal.ansiBrightRed": "#A0A0C5",
		"terminal.ansiBrightWhite": "#53495D",
		"terminal.ansiBrightYellow": "#AE81FF",
		"terminal.ansiCyan": "#8EAEE0",
		"terminal.ansiGreen": "#6DFEDF",
		"terminal.ansiMagenta": "#7AA5FF",
		"terminal.ansiRed": "#A0A0C5",
		"terminal.ansiWhite": "#F1EFF8",
		"terminal.ansiYellow": "#AE81FF"
	},

The effect is as follows

insert image description here

choose your favorite style

Link: https://glitchbone.github.io/vscode-base16-term/#/rebecca

Guess you like

Origin blog.csdn.net/weixin_45277161/article/details/130883635