我希望能够在我的代码审查中单击源代码行,并让 Intellij 打开该文件/行。我们使用 Phabracator 进行评论,它有专门的设置——例如,可以使用
txmt://open/?url=file:///Users/alincoln/editor_links/%r/%f&line=%l
跳转到 TextMate 中的源代码行。 IntelliJ 有类似物吗?
最佳答案
编辑 :现在有更好的选择,在 Create a web browser link that opens a file in Intellij. Possible? 中有解释.
在 Phabricator 中,在 下设置 -> 显示首选项 , 设置 编辑链接 到
http://localhost:63343/api/file//path/to/source/%r/%f:%l
替换
/path/to/source
与实际路径。这适用于 PyCharm 2016.1。
早期版本使用端口 63342 而不是 63343。
更新 :您可能需要在 IntelliJ 的内置服务器中启用外部连接和未签名的请求,如 https://www.jetbrains.com/help/idea/2016.2/debugger.html#d1397508e188 中所述。 .
关于intellij-idea - IntelliJ : jump to source via external URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28100845/