Tip: You don't have to stop the debug session to change the time stamp formats. If you make a mistake the output will display, `invalid time stamp'. The formats are different (which was news to me). The second time stamp is the difference between the previous time stamp. The first time stamp is the elapsed time since the start of the debug session. Time stamp formats can be specified in the options dialog (not pictured). Two additional color settings control the color of the output:Īs of 2.2.1 you can optionally show timestamps in your output. Color Output in the Find Results WindowĪs of 1.4, the Find Results Window is color highlighted. Therefore, the order of the classifiers is significant. No additional patterns are tested for the given line. If it matches, the line is given the classification associated with the pattern. NET form ( ), which varies slightly from those used by Ruby, JavaScript, Python, etc.Īt run-time, VSColorOutput will walk this list in order, testing the line of text against the regular expression. You can add, delete or edit the patterns. It can be opened via _Tools|Options|VSColorOutput|General|RegEx Patterns \_. The RegExClassification Collection Editor dialog contains the classification pattern settings. I've found this helps to highlight the other classified lines. The names reflect their intended use but are arbitrary in actual use.īuild Text is the default classification for any line that does not match the other patterns. I found this made it much easier to visually parse the output and quickly locate items of interest.Ĭolors are set in the Tools|Options|VSColorOutput dialog. I discovered it also highlighted lines in the build window as well. I originally wrote VSColorOutput to highlight trace output while debugging. Settings are stored in a separate file %AppData%/VSColorOutput/vscoloroutput.json. If no patterns match, then the line is classified as BuildText.įrom here, Visual Studio does the heavy lifting of mapping the classification to a color. The first matching expression determines the classification. A list of classifiers, consisting of regular expressions and classifications is checked. This allows VSColorOutput to monitor every line sent to the output window. VSColorOutput hooks into the classifier chain of Visual Studio. To uninstall, go the Tools|Extensions page, find VSColorOutput in the "Installed Extensions" and click uninstall. You can also install it from the Visual Studio Extension Gallery. VSColorOutput supports Visual Studio 2022. The default patterns will color build errors in red, warnings in yellow/gold and successful build messages in green.ĭownload and open the VsColorOutput64.visx file. Rules map to classifications which in turn map to colors. The rules consist of regular expressions. VSColorOutput can change the color of a line emitted to the output window based on specified rules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |