VSCODE 中 Verilog-HDL/SystemVerilog 扩展代码语法检查失败,波浪线消失的问题
波浪线消失真相只有一个这里选项打开但是这里不要填高亮颜色自定义另外针对扩展默认颜色丑的问题很多大红色可以在用户设置中粘贴以下代码也可以根据自己需求修改成自己喜欢的颜色editor.tokenColorCustomizations: { textMateRules: [ // 硬件数据类型关键字wire reg logic tri wand wor { scope: [source.verilog keyword.type, source.systemverilog keyword.type], settings: { foreground: #8cf08c, // fontStyle: bold } }, // parameter / localparam 参数关键字 { scope: [source.verilog keyword.other, source.systemverilog keyword.other], settings: { foreground: #5583df, // fontStyle: bold italic } }, // 端口关键字 input output inout { scope: [source.verilog keyword.other.port, source.systemverilog keyword.other.port], settings: { foreground: #034bda, // fontStyle: bold } }, // always/initial/assign 控制关键字 { scope: [source.verilog keyword.control, source.systemverilog keyword.control], settings: { foreground: #4287f5, // fontStyle: bold } }, // module / interface / class / package 类型定义 { scope: [source.verilog entity.name.type.module, source.systemverilog entity.name.type.module, source.systemverilog entity.name.type.interface, source.systemverilog entity.name.type.class], settings: { foreground: #00ffff, // fontStyle: bold } }, // 宏定义 define ifdef { scope: [source.verilog preprocessor, source.systemverilog preprocessor], settings: { foreground: #e639da, // fontStyle: italic bold } }, // 数字常量 { scope: [source.verilog constant.numeric.dec, source.systemverilog constant.numeric.dec], settings: { foreground: #ffffff } }, // 普通信号变量名 { scope: [source.verilog variable, source.systemverilog variable], settings: { foreground: #f7f9f7 } }, // 注释 { scope: [source.verilog comment, source.systemverilog comment], settings: { foreground: #6b7280, // fontStyle: italic } }, { scope: [source.verilog storage.type.number, source.systemverilog storage.type.number], settings: { foreground: #658cda, // fontStyle: bold } }, { scope: [source.verilog storage.type, source.systemverilog storage.type.uint], settings: { foreground: #fefefe, // fontStyle: bold } }, ] }效果修改其他字段颜色附上自己找不到需要设置某个需要类型的颜色方法12点击自己需要修改的目标3在用户设置中对应修改上面显示是keword.other.verilog,那就新建一个为keyword.other的对象然后选择自己喜欢的颜色