FAQ

Main »» Tools

Table of Contents


How can I run an external compiler from EmEditor to compile the current file?
See What are examples of External Tools configuration?. Compile by Visual C++ section.
Can I save multiple macros to files?
Yes. You can save multiple macros to files by using the Save Macro command.
How can I do a Google search for the word at the current cursor position?
Select the Customize Tools command, select the New button and enter "http://google.com/search?q=$(CurText)" in the
Command text box.
I want to compile the opened file with an external tool in Command Prompt, but how can I keep the Command Prompt window from closing after the compilation is finished?
Select the Customize Tools command, and select the New button and enter "cmd.exe" in the Command text box, and
"/k "filename" $(Path)" in the Arguments text box.
What are examples of External Tools configuration?
  • Open Internet Explorer
    Command: C:\Program Files\Internet Explorer\iexplore.exe
    Arguments: $(Path)
    Initial Directory: $(Dir)
    Icon Path: C:\Program Files\Internet Explorer\iexplore.exe
    Check Save File

  • Open Explorer
    Command: %WinDir%\explorer.exe
    Arguments: $(Dir)
    Initial Directory: $(Dir)
    Icon Path: %WinDir%\explorer.exe

  • Open Command Prompt
    Command: %WinDir%\system32\cmd.exe
    Arguments: $(Dir)
    Initial Directory: $(Dir)
    Icon Path: %WinDir%\system32\cmd.exe

  • Compile by Visual C++
    Command: %WinDir%\system32\cmd.exe
    Arguments: /k "C:\Program Files\Visual Studio\Vc7\bin\vcvars32.bat"&&cl $(Path)
    Initial Directory: $(Dir)
    Icon Path: C:\Program Files\Visual Studio\Common7\IDE\devenv.exe
    Check Save File

  • Run associated program
    Command: $(Path)
    Arguments:
    Initial Directory: $(Dir)
    Icon Path:
    Check Save File

  • Search Google for a word at cursor or a selected text.
    Command: http://google.com/search?q=$(CurText)
    Arguments
    Initial Directory:
    Icon Path:

  • Check out from Microsoft Visual SourceSafe
    Command: %WinDir%\system32\cmd.exe
    Arguments: /k C:\(SourceSafe path)\Common\VSS\win32\SS.EXE checkout $/(path)/$(Filename).$(Ext) -y(user name)
    Initial Directory: $(Dir)
    Icon Path: C:\(SourceSafe path)\Common\VSS\win32\SSEXP.EXE

  • Check in to Microsoft Visual SourceSafe
    Command: %WinDir%\system32\cmd.exe
    Arguments: /k C:\(SourceSafe path)\Common\VSS\win32\SS.EXE checkin $/(path)/$(Filename).$(Ext) -y(user name)
    Initial Directory: $(Dir)
    Icon Path: C:\(SourceSafe path)\Common\VSS\win32\SSEXP.EXE
    Check Save File


You can use the following predefined arguments in Command, Arguments, Initial Directory, and Icon Path.

$(Path) The full path name of the file.
$(Dir) The directory name of the file.
$(Filename) The file name without its extension.
$(Ext) The file name extension.
$(CurLine) The logical line number of the cursor.
$(CurText) The selected text if selected, or the word at the cursor if not
selected.

You can also specify environment variables, such as %WinDir%


English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文