最近找遍了网上和github,也没找到原汁原味的VS2019的代码配色方案,迫不得已,只能自己手动设置,现将成品贴出,以便指引和我一样迷途的羔羊......
配置步骤
1. 创建VS2019.xml文件,文件内容如下
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="VS2019">
<style name="Text" foreground="#000000" background="#ffffff"/>
<style name="Link" foreground="#0000ff"/>
<style name="Selection" background="#99c9ef"/>
<style name="LineNumber" foreground="#2b91af" background="#ffffff"/>
<style name="SearchResult" background="#ffef0b"/>
<style name="SearchResultAlt1" foreground="#000033" background="#b6ccff"/>
<style name="SearchResultAlt2" foreground="#330000" background="#ffb6cc"/>
<style name="SearchResultContainingFunction"/>
<style name="SearchScope" background="#f2f8fd"/>
<style name="Parentheses" background="#e2e6d6"/>
<style name="ParenthesesMismatch" background="#ff00ff"/>
<style name="AutoComplete" foreground="#000080" background="#c0c0ff"/>
<style name="CurrentLine" background="#3399ff"/>
<style name="CurrentLineNumber" foreground="#2b91af" background="#ffffff"/>
<style name="Occurrences" background="#b4b4b4"/>
<style name="Occurrences.Unused" underlineColor="#808000" underlineStyle="SingleUnderline"/>
<style name="Occurrences.Rename" background="#ff6464"/>
<style name="Number" foreground="#000000"/>
<style name="String" foreground="#a31515"/>
<style name="Type" foreground="#2b91af"/>
<style name="Namespace" foreground="#000000"/>
<style name="Local" foreground="#1f377f"/>
<style name="Parameter" foreground="#808080"/>
<style name="Global" foreground="#ce5c00"/>
<style name="Field" foreground="#000000"/>
<style name="Static" foreground="#2f4f4f"/>
<style name="VirtualMethod" foreground="#74531f" italic="true"/>
<style name="Function" foreground="#74531f"/>
<style name="Keyword" foreground="#0000ff"/>
<style name="PrimitiveType" foreground="#0000ff"/>
<style name="Operator"/>
<style name="Overloaded Operator" foreground="#008080"/>
<style name="Punctuation"/>
<style name="Preprocessor" foreground="#808080"/>
<style name="Macro" foreground="#8a1bff"/>
<style name="Label" foreground="#000000"/>
<style name="Comment" foreground="#008000"/>
<style name="Doxygen.Comment" foreground="#008000"/>
<style name="Doxygen.Tag" foreground="#0000ff"/>
<style name="VisualWhitespace" foreground="#c0c0c0"/>
<style name="QmlLocalId" italic="true"/>
<style name="QmlExternalId" foreground="#000080" italic="true"/>
<style name="QmlTypeId" foreground="#800080"/>
<style name="QmlRootObjectProperty" italic="true"/>
<style name="QmlScopeObjectProperty" italic="true"/>
<style name="QmlExternalObjectProperty" foreground="#000080" italic="true"/>
<style name="JsScopeVar" foreground="#2985c7" italic="true"/>
<style name="JsImportVar" foreground="#0055af" italic="true"/>
<style name="JsGlobalVar" foreground="#0055af" italic="true"/>
<style name="QmlStateName" italic="true"/>
<style name="Binding" foreground="#800000"/>
<style name="DisabledCode" foreground="#808080"/>
<style name="AddedLine" foreground="#00aa00"/>
<style name="RemovedLine" foreground="#ff0000"/>
<style name="DiffFile" foreground="#000080"/>
<style name="DiffLocation" foreground="#0000ff"/>
<style name="DiffFileLine" background="#ffff00"/>
<style name="DiffContextLine" background="#afd7e7"/>
<style name="DiffSourceLine" background="#ffdfdf"/>
<style name="DiffSourceChar" background="#ffafaf"/>
<style name="DiffDestLine" background="#dfffdf"/>
<style name="DiffDestChar" background="#afffaf"/>
<style name="LogChangeLine" foreground="#c00000"/>
<style name="LogAuthorName" foreground="#007af4"/>
<style name="LogCommitDate" foreground="#006600"/>
<style name="LogCommitHash" foreground="#ff0000"/>
<style name="LogCommitSubject"/>
<style name="LogDecoration" foreground="#ff00ff"/>
<style name="Warning" underlineColor="#ffbe00" underlineStyle="WaveUnderline"/>
<style name="WarningContext" underlineColor="#ffbe00" underlineStyle="DotLine"/>
<style name="Error" underlineColor="#ff0000" underlineStyle="WaveUnderline"/>
<style name="ErrorContext" underlineColor="#ff0000" underlineStyle="DotLine"/>
<style name="Declaration"/>
<style name="FunctionDefinition"/>
<style name="OutputArgument" italic="true"/>
<style name="StaticMember"/>
<style name="CocoCodeAdded"/>
<style name="CocoPartiallyCovered" foreground="#808000"/>
<style name="CocoNotCovered" foreground="#ff0000"/>
<style name="CocoFullyCovered" foreground="#00ff00"/>
<style name="CocoManuallyValidated" foreground="#0000ff"/>
<style name="CocoDeadCode" foreground="#ff00ff"/>
<style name="CocoExecutionCountTooLow" foreground="#ff0000"/>
<style name="CocoNotCoveredInfo" foreground="#ff0000"/>
<style name="CocoCoveredInfo" foreground="#00ff00"/>
<style name="CocoManuallyValidatedInfo" foreground="#0000ff"/>
</style-scheme>
2.将文件拷贝到 QtCreator\share\qtcreator\styles 下
预览效果