Sublime Text 3 Best Plugins

broken image


Python 3.3

  1. Top packages of Sublime text 3 in 2020, without which a web developers life is impossible. Packages and plugins makes your coding easier and faster.
  2. 1:30 Package Control2:50 Emmet3:58 Sublime Code Intel4:54 Material Theme10:30 Sidebar Enhancements10:53 Advanced New File12:08 Git Gutter13:00 DocBlockr15:36.

This is a Sublime Text 2 and 3 plugin allowing you to format your HTML, CSS, JavaScript and JSON code. It uses a set of nice beautifier scripts made by Einar Lielmanis. The formatters are written in JavaScript, so you'll need something (node.js) to interpret JavaScript code outside the browser. View Color Sublime plugin. DA UI is a set of beautiful, clean interface and syntax themes for Sublime Text 3. The DA UI plugin also has custom icon support with A File Icon. View DA UI plugin. Theme - Spacegray. Theme - Spacegray is a set of custom UI themes for Sublime Text 2 and 3 which are very minimal and clean.

Sublime Text 3 uses Python 3.3, while Sublime Text 2 used Python 2.6. Furthermore, on OS X, the system build of Python is no longer used, instead Sublime Text is bundled with its own version. Windows and Linux are also bundled with their own version, as they were previously.

Out of Process Plugins

Sublime Text 3 Best Plugins

Plugins are now run in a separate process, plugin_host. From a plugin authors perspective, there should be no observable difference, except that a crash in the plugin host will no longer bring down the main application.

Asynchronous Events

In Sublime Text 2, only the set_timeout() method was thread-safe. In Sublime Text 3, every API method is thread-safe. Furthermore, there are now asynchronous event handlers, to make writing non-blocking code easier:

  • on_modified_async()
  • on_selection_modified_async()
  • on_pre_save_async()
  • on_post_save_async()
  • on_activated_async()
  • on_deactivated_async()
  • on_new_async()
  • on_load_async()
  • on_clone_async()
  • set_timeout_async()

When writing threaded code, keep in mind that the buffer will be changing underneath you as your function runs. Download phone on computer.

Sublime Plugin Download

Restricted begin_edit() and end_edit()

begin_end() and end_edit() are no longer directly accessible, except in some special circumstances. The only way to get a valid instance of an Edit object is to place your code in a TextCommand subclass. In general, most code can be refactored by placing the code between begin_edit() and end_edit() in a TextCommand, and then running the command via run_command().

This approach removes the issue of dangling Edit objects, and ensures the repeat command and macros work as they should.

Zipped Packages

Packages in Sublime Text 3 are able to be run from .sublime-package (i.e., renamed .zip files) files directly, in contrast to Sublime Text 2, which unzipped them prior to running.

While in most changes this should lead to no differences, it is important to keep this in mind if you are accessing files in your package.

Importing Modules

Sublime Text 3 Plugin Development

Importing other plugins is simpler and more robust in Sublime Text 3, and can be done with a regular import statement, e.g., import Default.comment will import Packages/Default/Comment.py.

Best Sublime Plugins

Restricted API Usage at Startup

Best Plugins For Sublime Text 3

Due to the plugin_host loading asynchronously, it is not possible to use the API at import time. This means that all top-level statements in your module must not call any functions from the sublime module. During startup, the API is in a dormant state, and will silently ignore any requests made.





broken image