VSCode as editor in TortoiseHG? - mercurial

How do I configure TortoiseHG to use VSCode as my editor?
The TortoiseHG editor setting does not list VSCode.

Update: This is now included in TortoiseHG 4.4.1 as one of the pre-configured tools. Select it in ''TortoiseHG Settings'' -> ''TortoiseHG'' -> ''Visual Editor'': vscode.
Adjusting this answer for VSCode seems possible with something like [tortoisehg] editor = "C:\Program Files\Microsoft VS Code\Code.exe".

Related

VSCode open-in-browser won't open google-chrome (ubuntu)

When I try to run the open-in-browser extension (TechER version; there are a few such extensions by roughly the same name) in VS Code (1.41.1), I continually get the following error message: "Open browser failed!! Please check if you have installed the browser correctly!"
I reinstalled google-chrome, made sure it was default, double-checked the xdg settings, but it still won't work. Any suggestions much appreciated
It is because there is no binary executable named google-chrome may be yours is google-chrome-stable .
One thing you can do is to copy the binary file google-chrome-stable and create a renamed file google-chrome
Or you can set a bah alias
alias google-chrome='google-chrome-stable'
I was having this same issue with the "open in browser" extension. I clicked on the settings icon and installed an older version 1.1.0. Its working again for me.

Cannot install Emmet for Notepad++

After I downloaded Notepad++, I installed Plugin Manager and tried to install Emmet. Only "Installation of Emmet failed" I saw after that. I've tried everything. Install different versions of Notepad++ (including x86) and Python Script. Tried to install it manually. Nothing worked.
How can I install Emmet on Nodepad++?
UPD: I have deleted everything from APPDATA and used "Programms and Components" to uninstall Notepad++
Emmet doesn't show up on Notepad++ Plugin Manager window. Maybe it's outdated or not compatible anymore. Anyway, when you manually install Emmet and you still can't see the plugin please follow those steps;
Open Notepad++ and install Python Script plugin (available in Plugin Manager)
Then open plugins folder from Plugins menu and extract emmet-npp.zip into plugins folder.
Note: If it doesn't work, you might need to move EmmetNPP.dll file inside EmmetNPP folder.
Now restart Notepad++ and you should see the Emmet plugin in your Plugins menu.
You have to put the "EmmetNPP.dll" file into the "EmmetNPP" plugin folder, after having extracted both files into the plugins folder in Notepad++. The official GitHub site missed out this step.
I did all of the following to get it working. One or two of these steps might not be required, but after the final step it started working (i.e. it appeared on the Plugins menu without needing to install via Plugins Admin, and Emmet functions correctly via the Plugins -> Emmet dropdown menu. Next step is to setup keyboard shortcuts (i.e. Tab) as described elsewhere).
Plugins Admin -> install Python Script (restart NPP)
Download and extract the NPP plugin from https://emmet.io/download/
Copy the extracted EmmetNPP.dll and the EmmetNPP folder into:
%USER%\AppData\Roaming\Notepad++\plugins\config folder
Copy file EmmetNPP.dll file into:
%USER%\AppData\Roaming\Notepad++\plugins\config\EmmetNPP folder
Copy file EmmetNPP.dll file into:
C:\Program Files (x86)\Notepad++\plugins\EmmetNPP folder
Notes:
a. I am using the 32-bit version of NPP; if you are using the 64-bit version then step 5 should copy the EmmetNPP.dll file into:
C:\Program Files\Notepad++\plugins\EmmetNPP folder
b. After step 4, Emmet still did not appear either in the Plugins dropdown OR in the Plugin Admin tool. After step 5, though, it now appears in the Plugins dropdown and is functional. (Note that I was careful to restart NPP after each of the above steps. Future readers will not need to restart after each step (just keep NPP closed for steps 2-5) - I did so to test at what point it started working.)
Emmet is installed on Notepad++ using the plugin manager (full instructions found on Emmet for Notepad++ GitHub repo). If you have installed a clean Notepad++ (latest version) and have installed the Notepad++ plugin manager, use Plugins > Plugin Manager > Show Plugin Manager menu action and find and install “Emmet” plugin.
If this isn't working for you, the first thing I would do is uninstall Notepad++ and all extensions/modifications you've added to it and start fresh:
Install Notepad++
Install Nodepad++ Plugin Manger
Install Emmet from the Plugin Manager menu

SublimePaneNavigation Plugin

I found this plugint SublimePaneNavigation, and from the fitures it looks great but it's suppouse to be only for sublime 2, I cant find it on sublime 3 package control. Can I install it some other way, on a Sublime text 3?
SublimePaneNavigation
SublimePanelNavigation
From what I can tell this plugin should work in ST3, but you'll have to install it yourself to find out. Go to your Packages directory (select Preferences -> Browse Packages... to find it) via the command line, and (assuming you have git installed) run the following command:
git clone https://github.com/borist/SublimePaneNavigation.git
It should then be installed.

Mercurial not configured correctly

I have recently updated to eclipse juno. I have also updated mercurial to its latest version, but it is still giving me problems. The mercurial plugin tells :"Unsupported hg version:1.9.3. Expected is at least2.0.0." but its already updated(see pic).
If I try to commit, it automatically opens preferences window, which gives message :"Mercurial is not configured correctly.Run 'hg debuginstall' to analyse.".
When I do that, it says:"no username supplied". Then I run "hg -y debuginstall", which says, no problems were detected.
Everything that I mentioned is depicted in the picture.
Uncheck the option labelled Use default (built-in) Mercurial executable; then in the text box labelled Mercurial executable below, you can enter the full path to the hg.exe under your TortoiseHg 2.5 installation.
I got the same error when I installed Mercurial Eclipse Plugin. I find the configuration file "Mercurial.ini" in the mercurial installation folder. In my case, the path of that folder is "E:\eclipse\plugins\com.intland.hgbinary.win32_2.3.2\os\win32". Edit the configuration file with notepad and add the line "username = your-user-name" where your-user-name is free to choose. I hope it would help.

How do you configure Komodo diff using tortoiseHg and beyondcompare?

I'm trying to configure Komodo IDE so that it integrates with tortoiseHg and my beyondcompare3 diff tool. The diff works fine in tortoiseHg, but when I try to do a diff in Komodo nothing happens, no errors, no windows, nothing. Found a similar thread for SVN but need to know what to set the "diff options" box to for tortoiseHg (mercurial). thanks
http://community.activestate.com/forum/subversion-external-diff-tool
Have a look at the answer of How to integrate FileMerge with Komodo 6 IDE?