[Tutorial] How to add your favourite editor to Laragon and the Windows Right-Click Menu
-
With Laragon 2.1.0, you can use your favourite editor with Laragon and add it to the Right-Click Menu for quick access. In this article, we will add VS Code.
- Download VS Code:
https://code.visualstudio.com/Docs/?dv=win
- Extract the downloaded to: {LARAGON_ROOT}\bin\code
- Open laragon.ini in Menu > Laragon > Settings file: laragon.ini
- Put Editor=PATH-TO-EXE under [preferences]
[preferences] Editor=bin\Code\code.exe
Note: If you extract outside Laragon's installation dir, you must put full path. For example:
[preferences] Editor=C:\editor\Code\code.exe
- (Optional) Add to Right-Click Menu: Click Tools > Right-Click Menu > Add/Update Code & Terminal
Note: You must run Laragon as Administrator to do that.
Very easy huh. That's all forks!
- Download VS Code:
-
Some pics:
-
laragon.ini
-
A Menu Item with caption "Code" will be appeared in Menu > Tools
-
Tools > Right-Click Menu > Add/Update Code & Terminal
- The Windows Right-Click Menu is now has Edit with Code
-
-
@leokhoa How do I do this on Laragon 1.0.6?
-
@pajioh: Laragon 1.0.6 is too old
From the version, Laragon has added many features, please consider to upgrade:
https://forum.laragon.org/topic/474/how-to-upgrade-from-laragon-2-to-laragon-3
-
@leokhoa OK, thx.
I have apps I maintain using PHP 5.2, 5.4 and 5.6, I know they're old, but they're on intranet, and I can't convince my clients to upgrade. Can I still run those old PHPs if I upgrade to a new version of Laragon?
-
@paijoh : I haven't tested but I designed Laragon to handle this case carefully. To make sure, you can:
- Follow my instructions to install Laragon to another folder.
- Copy all of your PHPs to
bin\php
and your current Apache tobin\apache
. Remember to switch to your current versions.
If they don't work as expected, nothing is effect your current working one.
-
I was reading this to enable Sublime as my text editor in Laragon 3.1.2. Looking at my laragon\bin directory - code is not there. Should I create it and then follow rest of directions here? Thanks. I love Laragon!
-
@Steve : Yes
-
@leokhoa Was doing other things for a few days and just coming back to this now. Just realized you are probably using the word "code" as a placeholder for the editor name. If so then it could/should be - bin\name of editor\name of editor.exe - whatever editor you want. And that you can either install the editor in laragon\bin or any other place you want if you point to it. Am I right?
How about an IDE like Netbeans? Same procedure or diff?
-
@Steve: You're absolutely right. You can add any editor, just provide the Full Path (or Relative Path if inside Laragon)
And the answer is same procedure.
-
boorkmark
tanks
-
@leokhoa just edit file with Code? please add open folder as project in its context menu. its will so helpful for me.
-
@Steve may I know how you include the sublime text 2 into laragon?
Can you show me the steps to install it?
-
For Sublime Text, it's even easier:
- Just put it to
bin\sublime
- (Optional) Add to Right-Click Menu: Click Tools > Right-Click Menu > Add/Update Sublime Text & Terminal
Note: You must run Laragon as Administrator to do that.
- Just put it to
-
@leokhoa I've try it few times but still the sublime not in the "Tools"
-
With latest version for some reason it opens conf files in Notepad++, not in Dreamweaver. If I paste path in Windows Explorer, Dreamweaver opens. So path is correct.
RunAtStartup=0 AutoVirtualHosts=-1 RightClickMenu=0 Lang=English DataDir=D:\Laragon\data\mysql\mysql Editor=C:\Program Files\Adobe\Adobe Dreamweaver CC 2019\Dreamweaver.exe DocumentRootList=D:\Laragon\www| MinimizeWhenRun=-1 HostnameFormat={name}.oo FirstRun=0 [mongodb] Version=mongodb-win32-x64-ssl-3.4.2 Use=-1 [nodejs] Version=node-v8 [mysql] Version=mysql-5.7.21-winx64 Use=-1 [memcached] Version=memcached-1.4.5 Use=0 [php] Version=php-7.2.7-nts-Win32-VC15-x86 [apache] Version=httpd-2.4.34-Win32-VC15 Use=-1 DocumentRoot=D:\Laragon\www SSLEnabled=-1 [nginx] Version=nginx-1.13.8 Use=0 SSLEnabled=0 DocumentRoot=D:\Laragon\www\ Port=8080 [redis] Version=redis-x64-3.2.100 [postgresql] Use=0 Version=postgresql-9.6.2-x64 [mailcatcher] LastMailFile=mail-20181026-134054.402.txt DisplayTime=7 [ruby] Version=ruby-2.3.3```
-
@Stagger-Lee : Because you path has space, you should quote it:
Editor="C:\Program Files\Adobe\Adobe Dreamweaver CC 2019\Dreamweaver.exe"
-
Still does not work. I don't think quotes are problem, because it worked before. Only difference is 2018 - 2019.
-
Exactly the same thing is happening to me. In my case I placed the absolute path of Sublime Text.
Editor="C:\Program Files (x86)\Sublime Text 3\sublime_text.exe"
-
Anyone still struggling with getting Sublime Text 3 to run, I got it to work doing the following:
- I added
Editor="C:\Program Files (x86)\Sublime Text\sublime_text.exe"
tolaragon.ini
- Then rename
C:\laragon\bin\notepad++
toC:\laragon\bin\notepad++NULLED
or something different.
This is a bit hacky for my liking, is there any neater way to do it?
- I added