vscode設置終端主題,設置終端選中顏色


vscode定義主題色官網:
https://code.visualstudio.com/api/references/theme-color#integrated-terminal-colors

問題:
  終端選中顏色和終端背景顏色一致時,不能顯示出光標選中的內容,並且網上搜索了各種主題設置,沒有提到終端選中屬性的顏色

解決:
  通過查找vscode官方資料,找到terminal.selectionBackground屬性,可以通過調整terminal.selectionBackground屬性,設置終端選中內容的顏色

完整終端屬性:
  terminal.background: The background of the Integrated Terminal's viewport.
  terminal.border: The color of the border that separates split panes within the terminal. This defaults to panel.border.
  terminal.foreground: The default foreground color of the Integrated Terminal.
  terminal.ansiBlack: 'Black' ANSI color in the terminal.
  terminal.ansiBlue: 'Blue' ANSI color in the terminal.
  terminal.ansiBrightBlack: 'BrightBlack' ANSI color in the terminal.
  terminal.ansiBrightBlue: 'BrightBlue' ANSI color in the terminal.
  terminal.ansiBrightCyan: 'BrightCyan' ANSI color in the terminal.
  terminal.ansiBrightGreen: 'BrightGreen' ANSI color in the terminal.
  terminal.ansiBrightMagenta: 'BrightMagenta' ANSI color in the terminal.
  terminal.ansiBrightRed: 'BrightRed' ANSI color in the terminal.
  terminal.ansiBrightWhite: 'BrightWhite' ANSI color in the terminal.
  terminal.ansiBrightYellow: 'BrightYellow' ANSI color in the terminal.
  terminal.ansiCyan: 'Cyan' ANSI color in the terminal.
  terminal.ansiGreen: 'Green' ANSI color in the terminal.
  terminal.ansiMagenta: 'Magenta' ANSI color in the terminal.
  terminal.ansiRed: 'Red' ANSI color in the terminal.
  terminal.ansiWhite: 'White' ANSI color in the terminal.
  terminal.ansiYellow: 'Yellow' ANSI color in the terminal.
  terminal.selectionBackground: The selection background color of the terminal.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM