F# static methods editor colors in VS 2019

半腔热情 提交于 2021-01-29 04:35:06

问题


I am using VS 2019 with a black background editor. The List, Seq etc. methods are black and I cannot see them. Please see the attached image. What is the setting that controls the color of these methods? There is a setting 'Symbol-Static' (under Options -> Fonts and Colors -> Show Settings for: Text Editor) but Item foreground and background are disabled. The extension of the file is fsx.

Thanks


回答1:


You can set the color under Text Editor | Fonts and Colors: F# Functions / Methods. By the way, the module can also be set under User Types: Modules. So for example:

Is set to purple in:




回答2:


Looks like a default from a light theme is being picked up.

Here such identifiers are using the Plain Text colour (but then, here, so is the the function name and its parameter identifier).

Do you have any extensions that may be adding extra syntax colouring?

Additional

  1. As noted by s952163 the color setting "F# Functions / Methods" is more specific. But it also sets the method names that are shown differently in your screenshot.

  2. Resharper adds lots of extra settings, one of these could easily be changing static methods (maybe across languages), but I do not use Resharper in part because it was too much effort to change all the defaults I disagreed with!



来源:https://stackoverflow.com/questions/58093319/f-static-methods-editor-colors-in-vs-2019

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!