This is an adaption of https://pla.nette.org/en/how-open-files-in-ide-from-debugger
But the examples from that page do not work with current intellij idea. Here are some hints how to manage it for intellij idea with windows.
This is an adaption of https://pla.nette.org/en/how-open-files-in-ide-from-debugger
But the examples from that page do not work with current intellij idea. Here are some hints how to manage it for intellij idea with windows.
# Open file from errors pages | |
# ~~~~~ | |
# If your text editor supports opening files by URL, Play! will | |
# dynamically link error pages to files | |
# | |
# Example, for textmate: | |
play.editor=txmt://open?url=file://%s&line=%s&project=file://${application.path} |
var editor = 'C:\\dev\\jetbrains\\toolbox\\apps\\IDEA-U\\ch-0\\163.11103.6\\bin\\idea.exe "%project%" --line %line% "%file%"'; | |
var url = WScript.Arguments(0); | |
var match = /^txmt:\/\/open\/\?url=file:\/\/(.+)&line=(\d+)&project=file:\/\/(.+)$/.exec(url); | |
if (match) { | |
var file = decodeURIComponent(match[1]).replace(/\+/g, ' '); | |
var project = decodeURIComponent(match[3]).replace(/\+/g, ' '); | |
var command = editor.replace(/%line%/g, match[2]).replace(/%file%/g, file).replace(/%project%/g, project); | |
var shell = new ActiveXObject("WScript.Shell"); | |
shell.Exec(command.replace(/\\/g, '\\\\')); | |
} |
REGEDIT4 | |
[HKEY_CLASSES_ROOT\txmt] | |
@="URL:txmt Protocol" | |
"URL Protocol"="" | |
[HKEY_CLASSES_ROOT\txmt\shell\open\command] | |
@="wscript \"c:\\dev\\src\\gist\\flybyray\\run-editor.js\" \"%1\"" |