【问题标题】:Intellij Idea Find Tool Window max column length overrideIntellij Idea 查找工具窗口最大列长度覆盖
【发布时间】:2019-02-07 22:35:35
【问题描述】:

在 Intellij (v 13) 中,我正在执行文件搜索 (CTRL + SHIFT + F) 以查找 'this .is.a.fake.key' 在带有掩码 '*.properties' 的项目中。

具体来说,我正在搜索属性键,以便可以在搜索结果中导出它们的值。搜索执行得很好,但问题是如果返回的行长度超过 200 个字符,则在“查找工具”窗口中返回的结果会被截断。

如何配置“查找工具”窗口以将此默认设置更改为 400 个字符,因为我需要整行文本才能获得匹配的结果。这是导出搜索的示例:

Targets
Occurrences of 'this.is.a.fake.key' in Module 'proj' with mask '*.properties'
Found Occurrences  (2 usages found)
    Unclassified occurrence  (2 usages found)
    proj  (2 usages found)
          (2 usages found)
            simple_resource_bundle.properties  (2 usages found)
                (1405: 1) this.is.a.fake.key.with.less.than.two.hundred.characters=All work and no play makes Jack a dull boy.   All work and no play makes Jack a dull boy.   All work and no play makes Jack a dull boy.
                (1406: 1) this.is.a.fake.key

以下是属性文件包含的内容:

this.is.a.fake.key.with.less.than.two.hundred.characters=All work and no play makes Jack a dull boy.   All work and no play makes Jack a dull boy.   All work and no play makes Jack a dull boy.
this.is.a.fake.key.with.more.than.two.hundred.characters=All work and no play makes Jack a dull boy.   All work and no play makes Jack a dull boy.   All work and no play makes Jack a dull boy.  All work and no play makes Jack a dull boy.

【问题讨论】:

  • “在我的搜索结果中获取它们的价值”是什么意思?为什么将结果截断为 200 个字符很重要?
  • 我需要键的值,在结果中,所以我可以导出它。这很重要,因为如果值被截断,我将无法导出它。
  • 给定文件和行号,您可以使用解析保存的搜索结果的脚本从文件中提取实际行。
  • 请在 youtrack 上创建一个问题。它显然表现不佳。

标签: intellij-idea intellij-13


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-12-21
  • 2013-11-06
  • 1970-01-01
  • 1970-01-01
  • 2019-02-15
  • 1970-01-01
  • 2017-02-06
相关资源
最近更新 更多