IntelliJ IDEA控制台折叠与通配符? [英] IntelliJ IDEA Console Folding with Wildcards?
问题描述
简短问题:我可以为自定义控制台折叠指定通配符吗?如果是这样,语法是什么?
Short Question: Can I specify wildcards for custom console folding? If so, what is the syntax?
长问题:
IntelliJ有一个非常漂亮的插件(内置)允许你在控制台输出中折叠线(并指定何时或何时不执行此操作的黑名单/白名单)
Long Question: IntelliJ has a really nifty plugin (that comes built in) which allows you to fold lines in console output (and specify a blacklist/whitelist of when or when not to do this)
但我不确定如何(如果可能的话)指定通配符。许多行以时间戳开头,如此
However I am unsure how (if it's even possible) to specify a wildcard character. a lot of lines begin with a timestamp, like so
1,2012年1月,10:00:00,000 DEBUG
我想通过DEBUG折叠使用
Which i'd like to fold, by DEBUG, using something like
* DEBUG
我知道我只能将日志级别限制为INFO,但如果测试失败,这些行很有用,然后我可以随意扩展它们。
I know I could restrict the log level to INFO only, but these lines are useful if a test fails, and then I can expand them at will.
有没有办法做到这一点,还是应该开始寻找IntelliJ功能请求页面?
Is there a way to do this, or should I start looking for the IntelliJ feature request page?
推荐答案
你根本不应该使用通配符。当您添加新的折叠模式时,您会收到提示:
You shouldn't use wildcards at all. When you add a new folding pattern you get a prompt saying:
输入您想要折叠的控制台行的子字符串:
请注意,它表示substring。尝试在那里写DEBUG,看看它是否有效。
Notice that it says "substring". Try to just write "DEBUG" there and see if it works.
这篇关于IntelliJ IDEA控制台折叠与通配符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!