建立指向 grep 输出文件中行的超链接

gue*_*tli 5 pycharm

有时我grep在 PyCharm 终端中使用,因为 PyCharm 搜索不适合我的需求。

有没有办法以 PyCharm 创建指向找到的行的超链接的方式生成 grep 的输出,以便我可以通过单击链接转到该行?

find abc/ -name '*.py' -mtime -3 |xargs grep -P 'assign.*date'
abc/institution.py:  assignment = slot.assignment.order_by('-date')[0]
abc/apl/views.py:    already_sent_qs = qs.filter(assignment__date...
abc/apl/views.py:    obj.assignment.all().update(info_mail_sent_date...
Run Code Online (Sandbox Code Playgroud)

示例:我想观看第一场比赛:

assignment = slot.assignment.order_by('-date')[0]在文件中abc/admin/institution.py

nan*_*tek 6

看来这是此票证中一项备受期待的功能,从 6 年前开始。jetbrains 开发人员的评论表明,当他们进行更新时,它将适用于所有工具。

如果您的团队拥有付费许可证,我建议您对您希望看到的门票进行投票