简体   繁体   English

通过在Notepad ++编辑器中单击文件路径在Firefox中打开文件

[英]Open file in Firefox by clicking on a file path within Notepad++ editor

We have a log file that outputs some file names like C:\\Users\\user1\\AppData\\Local\\Temp\\Company1\\HttpResponse-2012.04.16_14.33.51_499-Error.html . 我们有一个日志文件,其输出一些文件名,例如C:\\Users\\user1\\AppData\\Local\\Temp\\Company1\\HttpResponse-2012.04.16_14.33.51_499-Error.html

We use Notepad++ v5.8.7 to look at the log files. 我们使用Notepad ++ v5.8.7查看日志文件。

Is it possible to just click or Ctrl+Click or to use other shortcuts to open the file (eg C:\\Users\\user1\\AppData\\Local\\Temp\\Company1\\HttpResponse-2012.04.16_14.33.51_499-Error.html) in Firefox? 是否可以单击Ctrl + Click或使用其他快捷方式打开文件(例如C:\\ Users \\ user1 \\ AppData \\ Local \\ Temp \\ Company1 \\ HttpResponse-2012.04.16_14.33.51_499-Error.html)火狐?

Are there plug-ins that supports that? 是否有支持该功能的插件?

Up to now I need to 到目前为止,我需要

  1. Select file path 选择文件路径
  2. Select Run->Open file 选择运行->打开文件
    -> File is opened in Notepad++ ->在记事本++中打开文件
  3. Select Run->Launch in Firefox 在Firefox中选择“运行”->“启动”
    -> File is shown by Firefox ->文件由Firefox显示

Is there a shorter way to show the file in Firefox? 有没有在Firefox中显示文件的更短方法?

You need to put the following line (command) in the Run (by pressing F5 or ALT+R+R) window of Notepad++. 您需要在Notepad ++的“运行”(按F5或ALT + R + R)窗口中放入以下行(命令)。

"C:\Program Files(x86)\Mozilla Firefox\firefox.exe" "$(CURRENT_WORD)"

The following figure will make it clear. 下图将使其清楚。

You need to select the link and then it will open in firefox. 您需要选择链接,然后该链接将在Firefox中打开。 You may need to change the path depending on where firefox.exe is located. 您可能需要根据firefox.exe的位置更改路径。 You may also choose the shortcut accordingly. 您也可以相应地选择快捷方式。 (I used CTRL+INS since this was available). (由于可用,我使用了CTRL + INS)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM