Google-chrome – Notepad++:Is there a way to fix the fact that I can’t run Chrome from the run menu

google-chromenotepad

I am running Notepad++ v.5.9.2 on Windows 7-64 bit. When I try to launch files in IE or Firefox from the Run menu in N++, there's no problem. However, when I click "Launch in Chrome" nothing happens, even though I have Chrome 12 installed on my system (and it runs fine outside of Notepad++).

I tried to modify the path to Chrome in the N++ shortcuts.xml file found in the following line: "chrome "$(FULL_CURRENT_PATH)"". I tried replacing $(FULL_CURRENT_PATH) with the full path of the chrome.exe file on my machine, but it still doesn't work.

Does anyone know how I can fix this problem so that when I click on Run>Launch in Chrome the file will actually launch in Chrome like it does in IE and Firefox?

Best Answer

While browsing another unrelated Notepad++ answer, I came across something that helped me to figure out how to work around the problem (thanks jweede!!) Here is the documentation.

  1. Under the Run menu, click Run.
  2. Browse to wherever your Chrome executable is, mine is in C:\Users\(current user)\AppData\Local\Google\Chrome\Application\chrome.exe This path will now appear in the box.
  3. Put quotation marks around the entire path AND a space after the last quotation mark (important)! Then type "$(FULL_CURRENT_PATH)"in the box, after the space.
  4. Click "Run" in the dialog and it should open your current Notepad++ file in Chrome. If all is well, click "Save" and name your new shortcut and assign a keyboard shortcut.