Komodo ide

Содержание:

List of Komodo Platform Technologies

  • Delayed Proof of Work (dPoW) — Additional security layer and Komodos own consensus algorithm
  • zk-SNARKs — Komodo Platform’s privacy technology for shielded transactions
  • Tokens/Assets Technology — create «colored coins» on the Komodo Platform and use them as a layer for securites
  • Reward API — Komodo CC technology for securities
  • CC — Crypto Conditions to realize «smart contract» logic on top of the Komodo Platform
  • Jumblr — Decentralized tumbler for KMD and other cryptocurrencies
  • Assetchains — Create your own Blockchain that inherits all Komodo Platform functionalities and blockchain interoperability
  • Pegged Assets — Chains that maintain a peg to fiat currencies
  • Peerchains — Scalability solution where sibling chains form a network of blockchains

Profile Customization[edit]

Macro Usage

Click Tools=>Macros=>Start Recording
Execute the set of commands you want to save
Click Tools=>Macros=>Stop Recording
Double Click the new macro at the bottom of the Toolbox

Tidy/Beautifier Command Usage

Create a tidy config file
Select the text you want to format in the current file
Click Tools=>Run Command
Enter the tidy command in the text field:
tidy -config {tidy_configxyz}
Check the Pass Selection and Insert Output checkboxes
Click Run

Kdiff/Beyond Compare/X-Winmerge Usage

Click Tools=>Run Command
Click «More»
Click «Add to Toolbox» to save it as a shortcut
Select «No Console» next from the dropdown next to the Run In option
Add the Kdiff.exe/BCompare.exe/Xwinmerge.exe location to the PATH environment variable
Type in the HTTP address of the SVN/Mercurial/Git repo, or go to the local repo root using the «Browse» button
Run the application: BCompare.exe %F %f

Snippet Usage

Open Toolbox in the right sidebar
Right Click the Snippet you want to modify
Click Properties
Add %s between the tag to wrap the snippet around the selected text
\n is not needed to insert carriage returns as in Find/Replace. Use the enter key instead
To simply wrap a selection, check «Maintain indentation context after selection», then uncheck «Maintain selected text or cursor position after insertion». For example:

HTML Comments Snippet:

 <!--
 ]
 -->

JavaScript/CSS Comments Snippet:

 /*
 ]
 */

Extension Usage

To Install Extensions, click and drag the .xpi link to the Komodo window

Click the tab icon labeled «Show Specific Sidebar/Tab»
Select the Add-On from the Projects or Toolbox dropdown list

Find/Replace Usage

Use the MoreKomodo extension to save replacement patterns as favorites
Use the HTML Entities extension to quickly replace punctuation in HTML
Replace $ with \ when porting regular expression backreferences from Perl
Use \n to insert carriage returns with replacement text

Configuration

Disable unused Add-Ons and Plugins to speed up startup
Use View=>Preview in Browser on a saved HTML file, then type about:config into the address bar to open the configuration menu
If available, the View About:Config macro in the Snippets toolbar also opens the configuration menu. Here is the script

try 
 {
 ko.open.URI('about:config','browser');
 }
catch(e) 
 {
 alert(e);
 }

API Catalogs for Code Intelligence

Search for .cix files under path where Komodo is installed

Replace existing .cix file with the matching update listed here:

Preview in Browser

Use a Run Command to add a customized Preview to the toolbar:

Open current HTML file in a Web browser

pickPreview("//foo.com", "en", "setting", "chrome")

Parameters

app.update.enabled: Automatic update check

app.update.interval: The value in seconds between automatic update checks

extensions.update.enabled: Automatic update check for extensions

extensions.update.interval: The value in seconds between automatic update checks for extensions

general.warnOnAboutConfig: Toogle About:config warning message

Windows Profile Location for Exporting Settings

(Drive):\Documents and Settings\(username)\Application Data\ActiveState\Komodo\(version)\prefs.xml
or
(Drive):\Documents and Settings\(username)\AppData\Local\ActiveState\Komodo\(version)\prefs.xml

XUL/RDF Tweaks for Extensions

Copy morekomodo.rdf from the extensions/morekomodo folder to the XRE folder to retain MoreKomodo Favorites after version updates

Edit kjslint.js and kjslint.xul to set default values for KjsLint

Conclusion

For serious development, you can’t beat an Integrated Development Environment. But it’s important to have one that fits in with your workflow as smoothly as possible. Komodo IDE is a very versatile IDE, with many features that aid developers in writing better code, their way. Its cross-platform nature means you can use the operating system (or operating systems) you want, to write in your language of choice, without having to shell out for multiple licenses.

ActiveState is constantly working on advanced features and workflows so you, the developer, don’t need to leave the IDE’s window. That’s the beauty of an IDE, after all.

Komodo is up against tough competition in this market, but it’s constantly evolving, with excellent core features such as the debugger, a very powerful code editor, integrated version control, multi-language support. All these features are as good or better as any popular IDE you can buy today.

Komodo IDE offers a free 21 day trial, which you can download here. Give it a spin and see if it’s the right tool for you.

Popular Komodo IDE extensions

NST – New Source Tree

From the extensions homepage: “If you work on big projects, it’s very hard not to get lost in your code without a decent map. NST provides it, in a manner similar to Komodo Code Browser.”

It provides a new panel for visualizing your source code. Go to View -> Tabs & Sidebars -> Source to enable it.

Side by Side Diff

Side-by-Side Diff is an add-on for the regular diff dialog for seeing changes side-by-side.

When you activate the diff dialog — by going to File -> Source Code Control -> Diff (Compare Files) — you’ll see a drop-down menu called Diff style where you can enable the side-by-side diff view.

MySQL Database Explorer

Komodo IDE has database explorer capabilities built-in, but it doesn’t have the MySQL driver implemented in it’s core. With this extension you can add this functionality, enabling you to connect to MySQL databases.

Once the extension is installed, go to View -> Tabs & Sidebars -> Databases, click on the “+” sign on the left and create a new database connection for MySQL on the popup window.

TODO Helper

This is a really useful extension, it parses the file you currently opened, and shows you if there are todo comments.

A little icon on the status bar will show you if there are any todos, click on it and it will bring up the Todo panel. You can define the search pattern for todo lines in the file.

More extensions

There are so many extensions for Komodo IDE. To find them, do a search on the Add-ons Manager window.

Other notable extensions include:

  • kopy.io: This addon lets you send code from Komodo to its new complementary text storage app, kopy.io.
  • Tab Switcher
  • Komodo Go
  • HTML Tools
  • DOM Inspector

Установка KE 9.1

Тут, слава богу, практически ничего не изменилось. Тем, кто ставит Komodo Edit впервые, можно руководствоваться . А вот тем, кто обновляет версию, придется немного попотеть.

Во-1-х, нужно снести папку (если вы, как я, держали там что-нибудь своё, не забудьте сохранить это в другое место).
Во-2-х, нужно решить, что делать с папкой Если мы ее оставим (у меня она весит 100+ Мб), то к ней, рядышком, добавится , а это еще около 72 Мб. Зато новым Комодом подхватятся некоторые настройки старого. Увы, не все (при беглом осмотре выяснилось, что сохраняются, к примеру, настройки удаленных ftp-соединений, а также список моих темплейтов. Впрочем, об этом потом). Остальное придется перетаскивать из папки старого Комода, или переустанавливать по-новой, перенастраивать и т.д. Ну, или начать всё с чистого листа, т.е. грохнуть упомянутую , не жалея о прошлом. Разумеется, решение каждый должен принимать сам, в зависимости от своих конкретных обстоятельств. Надеюсь еще коснуться попозже этой темы, поскольку я старую папку пока не снес (не люблю необратимых поступков).

Итак, мы всё обдумали, морально и физически подготовились, и можем смело переходить к уже установке.

Единственное отличие от изложенного там – установщик научился самостоятельно помещать ярлык Komodo Edit в папку «Рабочий стол». Да еще сама иконка – портрет комодского дракона – стала потолще, как бы намекая, что зверь заматерел.

Однако, открыв установленный редактор, видим, что он не только повзрослел (это мы еще проверим), но и сильно изменился внешне.

Go-Tool

The go-tool is a fantastic command line helper that allows you to quickly change to commonly used directories. You set up an alias for a directory. For example, I have aliased the “C:\ActiveState\Komodo\src” directory as “ko.” Now I can simply type “go ko,” and I’ll be changed to this directory. As you can imagine, this really starts paying off the deeper you go into a directory tree, as you don’t need to type out all of those directory names.

The benefit for Komodo is you can enable “go-tool” integration with Komodo’s Fast Open dialog, and then typing “ko” in the fast open textbox will change location to the set directory. To enable this, open Komodo’s preferences, navigate to the Fast Open category and enable the Go-tool integration checkbox.

History

Komodo Edit 4.0 was originally a freeware version of Komodo IDE 4.0, released in 2007-02-14.

On 2008-03-05, ActiveState Software Inc. announced Komodo Edit 4.3 to be open-sourced software, licensed under Mozilla Public License (MPL), GNU General Public License (GPL), and GNU Lesser Public License (LGPL).

Open Komodo

It is a subset version of Komodo Edit, with initial goal of Web development. The code was to be available between late October or early November 2007, with Open Komodo code repository created by ActiveState in August 2007.

On 2007-10-30, ActiveState Software Inc. announced the release of Open Komodo. The initial release was 1.0.0 Alpha 1.

Komodo Snapdragon

It is an announced initiative from ActiveState to create an open source development environment that promotes open standards on the web. It was to be based on Open Komodo.

Первый запуск. Предварительная настройка интерфейса.

Запустив Komodo Edit в первый раз, видим такую картинку:

Закрыв окно «Welcome to Komodo» (его всегда можно открыть из меню View — Getting Started), видим стартовую страницу.

Здесь, в секции Recent Files, будут сохраняться последние открытые файлы, выше последние проекты, а ниже — шаблоны. Возможны простые действия с ними из контекстного меню по ПКМ (Открыть/Удалить, имеется ввиду удаление из списка):

Если не хотите, чтобы стартовая страница открывалась каждый раз, можно убрать галочку в Edit — Preferences — Appearance

Здесь же можно определить, сколько последних проектов и файлов будет сохраняться на стартовой странице, а также поменять скин.
Кроме того, обратите внимание на правую сторону стартовой страницы. Тут доступна такая полезная штука, как Check Configuration

Открыв ее, видим, чтó у нас установлено (точнее, чтó видит Комодо в системе. Он не видит наш php, поскольку тот установлен в составе XAMPP и в переменной $PATH отсутствует. С этим мы еще разберемся.) Тут же можно открыть справку и вкладку Properties, соответствующую сабжу.

Перейдем к первоначальным (и самым, так сказать, насущным) настройкам, без которых начинать даже дальнейшую, более тонкую настройку, не говоря уже о работе, не очень удобно.

По умолчанию Komodo Edit открывает файлы примерно в таком виде:

Бросаются в глаза две особенности: отсутствие переноса длинных строк и навигационная полоса справа (MiniMap). Если вас устраивает подобное поведение для большинства файлов, и вам лишь иногда нужно его менять, то word wrap можно включать/выключать клавишами Ctrl + 9, а Minimap отключать и включать в меню View — View Minimap.

Меня, к примеру, это совсем не устраивает, поэтому я первым делом отключаю этот Minimap в настройках (Меню — Edit — Preferences), заодно контролируя наличие галочки на Show line number:

а затем включаю постоянный перенос строк:

Обратите внимание: в меню Edit — Current File Settings можно выставить некоторые настройки, отличные от дефолтных, и они будут соблюдаться для данного файла, пока он находится в списке Recent Files.

Так уже можно жить. Но чтобы эта жизнь была удобной и продуктивной, предстоит еще немало потрудиться в Preferences. Об этом в следующий раз.

UPD: Пока я раскачивался с продолжением, медитируя и погружаясь в тонкости настроек KomodoEdit, Алексей Федорчук, прочитав данный пост, практически мгновенно откликнулся своими первыми впечатлениями о редакторе (вот, между прочим, что значит профессионал). Для читателя, интересующегося сабжем, полагаю, это будет весьма интересно и полезно, поскольку интересы мои и Алексея Викторовича в значительной мере не перекрываются, а дополняют друг друга: с одной стороны – html и css-кодинг, php, bash, sql и подобное, с другой – в основном plain-text, работа с проектами, макросами и т.п., то есть всё то, о чем я если и собирался писать, то в последнюю очередь и без особых подробностей. Таким образом, взгляд на KomodoEdit становится более объемным и объективным.

Word Completion

If you are re-typing a word or variable that you’ve used previously in the file, e.g. “myLongVariableName,” then typing the prefix of the word “myL” and then using the  menu will automatically expand this name with the nearest match.

Now, it’s a little cumbersome to use a menu for this feature, so go into your Komodo preferences, navigate to the Editor > Smart Editing category and enable the Use Tab character to complete words preference. Now after typing “myL”, you can use the Tab key to trigger this functionality. Note that you can use Tab to continually cycle through all of the available matches when it’s not the correct text, or use Shift+Tab to cycle backwards.

Easy Adoption

It’s hard to convince a team of programmers who are strongly attached to their favorite editors or operating systems to buy into the idea of a standardized development environment. Komodo IDE has a number of advantages over other editors and IDEs which make team adoption easier:

Multi-Language and Framework

Full debugging, code intelligence and editing for Python (including Python 3), PHP, Perl, Ruby, Tcl, XSLT and Node.js.

Full code intelligence and editing support for HTML (including HTML 5), JavaScript, CSS (including CSS 3), XML, XUL, and templates including EJS, epMojo, RHTML, Django, Mason, Smarty and Template Toolkit.

Excellent editing support for dozens of other languages, including C/C++, JSON, SQL, Erlang, CoffeeScript, LESS, SCSS, and all things text.

Customizable

Komodo can be made to look and feel like other editors or development environments—key bindings and color schemes are completely customizable. Komodo has the ability to emulate the behavior or other editors, such as Vi, Emacs and Textmate, so programmers feel at home when switching to Komodo. That means learning curves are almost non-existent.

Connectable

Komodo can easily interact with external tools through saved commands and macros. Output can be displayed, sent to the current document, or trigger subsequent actions. Integration with third party applications and SDKs quickly becomes seamless.

Extensible

Additional languages and functionality can be added through Komodo add-ons. If you work with domain-specific languages or libraries, you can create extensions that add syntax highlighting and code intelligence for that language. Better yet, you can check to see if others in the Komodo community have already created the extension that you need.

“Komodo IDE from ActiveState is the most comprehensive code editor and debugger available for enterprise teams that develop applications using a range of dynamic languages.” — James R. Borck, InfoWorld

“Komodo IDE is the most comprehensive, intuitive, and easy to use IDE for dynamic languages. Our Linux based applications are developed on PCs and MACs. Komodo’s flexible licensing rules and ability to run on Windows, MAC OS, and Linux affords our developers the flexibility we need to get the job done quickly and efficiently. We cannot imagine working on any other platform.” — Jason Cobb, Senior Systems Architect at Siemens Rail Automation Corporation

How to customize your editor

Komodo IDE is very flexible when it comes to configuration. Every view, icon, and section can be customized to fit your needs.

I’ll cover the most important ones below.

Customizing the editor

The default configurations are good, but they can be even better with just a couple of minutes of configuration.

In my book, the font size and line-height are the most important to configure first, because you’ll spend a good amount of time looking at code.

Komodo IDE’s default font size and line-height are too small for my taste, so let’s just configure that. Go to Preferences, click on Fonts and Colors and set your font size on the Fonts tab.

Komodo 8 does not have a line-height setting. However, the upcoming Komodo 9 will have this setting. Here’s how to set the line-height in the Komodo IDE 9 Pre-Release: click on the Common Syntax tab within Fonts and Colors and select the bracebad element type. Set your desired size and click OK.

Besides font size and line-height, you can configure every other aspect of your IDE experience.

If you want white space to be visible just click View -> View White Space. If you want line numbers or identation guides, just click View -> View Line Numbers or View -> View Identation Guides. To apply global settings for these options, visit Preferences -> Editor -> General.

The configuration possibilities are endless.

Skins and color schemes

I don’t know about you, but for me a dark theme always relaxes my eyes better than a light background. Fortunately changing themes in Komodo IDE is very easy.

There are two aspects of changing the overall color in the application. First, you can change the Skin which controls the interface of the application (toolbars, code browser, etc.). You can also change the Color Scheme, which controls the code editor itself.

Go to the Preferences, click on Appearance and change the Skin from default to another skin (I chose Abyss), then go to the Fonts and Colors again and select a different scheme from the Color Schemes drop-down.

I like Dark_Wombatsosia, which is a core color scheme in Komodo, but you can download others from their website, including a preview of the color schemes coming in Komodo 9.

Every editor-specific configuration can also be modified on a language level too, by clicking on the Language Specific tab.

Syntax highlighting can also be enabled on a file level too. In the file editor, click on the File Type on the bottom and check all the languages that are mixed together in the file.

Shortcuts and key bindings

Shortcuts and key bindings are a powerful way to quickly navigate through different windows.

One of the most powerful, fast shortcuts I use in every IDE is to open files quickly, without searching through the file tree. In Komodo this shortcut is CMD+SHIFT+O on a Mac or CTRL+SHIFT+O on Windows. This function is being completely overhauled in Komodo 9, with a ton of new features and a visual update.

A popup will now be visible; you can just start typing the file’s name and hit Enter to open it instantly.

You can configure every part of keybinding in Komodo. To see a full list of the available shortcuts go to Preferences and click on Editor -> Key Bindings.

On this popup window you can also define key binding schemes, or select from a list of available ones such as Emacs, Vi or Windows.

Extensions

If you find you need additional functionality, you’ll quickly find Komodo has a wide variety of extensions. You can find extensions for many additional functionalities that aren’t built into the core of Komodo IDE.

To install new extensions go to Tools -> Extensions in the navigation and click on Get Add-ons tab. Here you’ll see a list of all the available extensions for the IDE.

On the Extensions tab you’ll see all the installed extensions, like the DB Explorer, Git plugin, and Breadcrumb section. Here you can disable those extensions you’re not going to use.

You can easily write your extensions. As mentioned before, Komodo uses the Mozilla engine, this means you can write it using Javascript, CSS and Python.

Features

Many of Komodo’s features are derived from an embedded Python interpreter.

Open Komodo uses the Mozilla and Scintilla code base to provide its features, including support for many popular languages (including Python, Perl, PHP, Ruby, Tcl, SQL, Smarty, CSS, HTML, and XML), across all common operating systems (Linux, OS X, and Windows). The editor component is implemented using the Netscape Plugin Application Programming Interface (NPAPI), with the Scintilla view embedded in the XML User Interface Language (XUL) interface in the same manner as a web browser plugin.

Both Komodo Edit and IDE support user customizing via plug-ins and macros. Komodo plug-ins are based on Mozilla Add-ons and extensions can be searched for, downloaded, configured, installed and updated from within the application. Available extensions include a functions list, pipe features, additional language support and user interface enhancements.

Komodo IDE has features found in an integrated development environment (IDE), such as integrated debugger support, Document Object Model (DOM) viewer, interactive shells, source code control integration, and the ability to select the engine used to run regular expressions, to ensure compatibility with the final deployment target.

The commercial version also adds code browsing, a database explorer, collaboration, support for many popular source code control systems, and more. Independent implementations of some of these features, such as the database editor, Git support, and remote FTP file access, are available in the free version via Komodo Edit’s plugin system.

What’s New in Komodo IDE

11.0

  • Revamped Code Intelligence:
    Autocomplete is more robust and triggers from any position. The symbol
    browser focuses on simplicity, and you can quickly filter symbols using
    the new symbol list — all with overall faster performance. For more information, see the Code Intelligence documentation.

  • Print Debugging:
    Is running the full debugger is a bit much, but toggling between print
    statements gets tiresome? Now you can quickly toggle print statements as
    well as easily create them, simply by clicking the editor margin. For more information, see the Print Debugging documentation.

  • DevDocs.io Integration:
    Highlight any word or code snippet and trigger the relevant language docs
    in DevDocs.io from inside Komodo, making the process of looking up
    documentation much simpler. It even works when you’re offline.

  • Live Previewing:
    No need to switch back and forth between your browser and editor. Now you
    can edit your HTML and markdown and test it all without leaving your IDE.
    Your preview will automatically reload whenever you edit the file — saving
    not required. For more information, see the Live Preview documentation.

  • Project/Folder/File Templates:
    Automate your workflow with templates for Python, Go, PHP and HTML, or
    create your own. You can even link to remote zip files on GitHub to hook
    projects into Komodo. Plus, with the new Project Wizard, you can bootstrap
    new projects with your favorite templates. For more information, see the Templates documentation.

  • Dependency Detector:
    Komodo automatically scans and detects third-party dependencies, giving
    you immediate insight on what works, and letting you further adjust as
    needed. Maintain control while minimizing configuration time.

  • Universal Package Manager:
    Access your package manager with one button and run commands directly
    within the editor, with support for Python (pip), PHP (Composer), Ruby
    (Gem) and Node.js (npm and Yarn). For more information, see the Package Manager Integration documentation documentation.

  • Clipboard Manager:
    Press shortcut key (default keybindings) to bring up your
    last 10 clipboard entries. Convenient!

  • Auto-Formatting:
    Auto-format a file on save, or access formatting options with a new
    sidebar button. Great for Go coding in particular. For more information, see the Formatting source files documentation.

  • Updated Publishing:
    Publishing with Komodo 11 is a breeze. The updated interface helps you get
    started faster and see what files will be published at a glance. For more information, see the Publishing documentation.

  • Other Mentionables

    • More snippets, tutorials and userscripts for PHP (Drupal, Laravel, WordPress)
    • Asynchronous remote files — work with remote files way faster
    • JSHint 2.9.5 linting for enhanced JavaScript (ES6) support
    • SDK availability
    • Project template for Komodo add-ons
    • User interface enhancements
    • Refreshed, comprehensive documentation
    • And more (see the changelog)
Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *