How to install plugins for sublime text 3. Plugins, their installation and configuration for Sublime Text
Sublime Text- this is modern text editor with closed source code. It is most often used by web developers to html editing or php code. The editor has a beautiful, modern appearance and several interesting features, such as quick navigation, simultaneous editing and command entry.
Although the program comes out of the box with many features that will greatly help your work, there is always room for improvement. Among other things, it supports plugins written in Python. In this article you will find the best Sublime Text 3 plugins. They are also suitable for the free alternative to this program, Lime Text. With these plugins you can greatly expand the capabilities of the program. Now let's move on to the list.
This is probably the first plugin you need to install after installing and running the program. This package manager for Sublime Text, with it you can install, remove and update plugin packages. You can also very easily view everything installed plugins Sublime Text 3.
2. Emmet
The Emmet plugin is not only available for Sublime. This is a pretty popular thing. It allows you to write css and html code much faster using abbreviations and shortcuts, which are then expanded into full-fledged html tags. For example:
((h4>a)+p>img)*12
This will create 12 header elements, each followed by an image. Then you can simply fill out the resulting template, without having to type tags one by one.
This is a plugin for checking errors in your code. It has been recently redesigned and now includes several new features. It doesn't support all programming languages, it just creates an API, then you can install plugins for the languages you use most.
4. SublimeEnhancements
This Sublime Text 3 plugin improves sidebar editor. Adds the ability to create new files in current folder project, moving and copying files and folders, searching, updating and much more.
With the PackageResourceViewer plugin you can view and edit the packages that you install in Sublime Text 3. It is possible to extract the package into separate folder, correct what needs to be there and return it to the program.
6. Git
This plugin integrates the Sublime Text 3 editor with Git. You can interact with Git directly from the editor, such as adding files, sending commits, viewing logs and file annotations.
This plugin adds the ability to open a terminal in your project folder directly from Sublime Text using hotkey. This is very useful if you need to run any commands in this folder.
CSSComb is a plugin for sorting CSS properties. If you want your code to look neat and be located in in the right order, this plugin will help you customize the order of properties. This is also useful when you work in a team of developers, each of whom has their own coding preferences.
With this plugin you can check whether your browser supports the CSS or HTML properties of the elements you are using. To do this, simply select CSS property or HTML element, you will then be redirected to the appropriate caniuse.com page.
The Alignment plugin allows you to align code, including PHP, JavaScript and CSS. This makes it neater and easier to read. You can see an example in this screenshot:
With this plugin, you can remove unnecessary spaces as well as extra trailing spaces that can cause JavaScript errors.
With this plugin you can select and add any color of yours to Sublime Text 3 operating system just by clicking on it with the mouse. You can also choose a color from the color wheel.
13.MarkDown Editing
Although Sublime Text 3 allows you to view and edit files from MarkDown markup, he opens them as usual text files with very bad formatting. This plugin will help improve formatting and add text color to files written using Markdown.
14. FileDiffs
The FileDiffs plugin allows you to analyze the differences between two files in Sublime Text 3. You can compare files not only with each other, but also with the system clipboard, as well as unsaved and saved versions of the same file.
DocBlockr allows you to create documentation or annotations for code by analyzing functions, parameters, variables, and automatic adding already available documentation.
16. Third Party Themes
Looking the same every day gets boring over time. New topic may even give you new ideas for work. You can try several interesting topics, For example:
The right set of plugins can improve performance in any application. If you are a web developer working with Sublime Text 3 Package Ccontrol, we strongly recommend that you carefully read the plugins discussed in this article:
- Package Control ;
- HTMLPretify ;
- Emmet ;
- Bracket Highlighter ;
- jQuery ;
- Case Conversion.
Package Control
This plugin makes it easy to find, install and update other packages. It needs to be installed first. This will make it easier to work with all other plugins.
How to install
- Follow this link https://packagecontrol.io/installation and copy the command, which will look something like this:
- Press Ctrl - backtick (; `) to open the Sublime Text Console:
- Paste the command and press Enter.
- After running the command, you will see a small pop-up warning:
- Click "OK".
- Close and restart Sublime Text.
- Enter the Package Control command to see all commands:
We will use Package Control Sublime Text for the remaining plugins.
HTMLPrettify
Accepts long lines HTML, CSS, JavaScript, and JSON and formats them so you can read them instead of trying to make sense of a bunch of typing.
How to install
- Press Ctrl-Shift-P in Windows to open the "Command Panel".
- Enter the Package Control command to see all commands. Select Package Control: Install Package. A menu of available plugins will appear on the screen:
- Enter HTMLPrettify:
- Click on HTML-CSS-JS Prettify. This name is slightly different, but it is the same plugin.
Emmet
This plugin used to be called Zen Coding. It allows you to write abbreviations HTML codes and CSS. For example, by typing the following:
#page>div.logo+ul#navigation>li*5>a(Item $)
And pressing tab key, You'll get:
After installing Emmet using Sublime Text Package Control, restart Sublime Text.
For Emmet to work, you need to set the syntax for the document. Otherwise it won't work:
Now check. Enter the following:
nav#menuSystem.navMenu.isOpen>div#hotelLogo>div.navMenuIcon.logoIcon+div#arrowPointer+ul#navMenuMain>li.navMenuItem.navMenuItem$$$*2>div.navMenuIcon(Item $)+a(Item $)
And press tab. You'll get:
It will take a lot of time to learn all the available abbreviations. This will allow you to write HTML code much faster.
BracketHighlighter
The plugin highlights brackets and tags. After installation using Sublime Text Package Control install You can click anywhere in the JavaScript or HTML code and see the opening and closing parentheses in the left column:
JQuery
The jQuery plugin highlights the correct jQuery method syntax and provides code snippets to complete it:
Case Conversion
Allows you to switch between snake_case , camelCase , PascalCase , etc. After installing the plugin using Package Control (type " pic" for quick access to Install Package), try:
Before: navMenu
Press: ;;c, then;;c
After: nav_menu
Note that this will not work properly if you try to convert an entire string.
Before:
Press: ;;c, then;;c (for camelCase)
After: navIDMenuSystemClassNavMenuIsOpen
If you are a web developer using Sublime Text 3 Package Control, I advise you to try the plugins listed in this article! If you don't like them, you can always remove them using Package Control: Remove Package.
Translation of the article " Sublime Text 3 Plugins for Web Developers» friendly project team
Today I decided to switch from the old Sublime to Sublime Text 3. In this post I want to record a list of plugins I use and at the same time tell me a little about them. For example, about those who do cool lighting color values :)
For convenient installation plugins must be installed with Package Control. To do this, open the console in the editor (Ctrl + `) and enter the following command:
Import urllib.request,os,hashlib; h = "eb2297e1a458f27d836c04bb0cbaf282" + "d0e7a3098092775ccb37ca9d6b2e4b7d"; pf = "Package Control.sublime-package"; ipp = sublime.installed_packages_path(); urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler())); by = urllib.request.urlopen("http://packagecontrol.io/" + pf.replace(" ", "%20")).read(); dh = hashlib.sha256(by).hexdigest(); print("Error validating download (got %s instead of %s), please try manual install" % (dh, h)) if dh != h else open(os.path.join(ipp, pf), "wb" ).write(by)
Then we restart the editor. I would like to note that the new version launches even faster than the old one. Now to install plugins, press Ctrl + Shift + P and select Package Control: Install Package. There we select the plugin and press Enter.
Plugins
Emmet
I think it needs no introduction. This is a plugin for speed dial html and css code.
Local History
A convenient plugin for viewing file modification history.
Encoding Helper
Displays in status line file encoding, and also allows you to open and save files in various encodings.
SublimeCodeIntel
Smart autocomplete, it is possible to jump to definitions when help Alt+ Click.
SublimeREPL
Interpreter different languages. For example Python, NodeJS and others
DocBlockr
Convenient insertion of JSDocs, parses function parameters. Type /** before the function and press Tab.
Very cool auto-complete file names. Can be used in any attributes, any tags. For pictures it also shows the width and height of the image.
ColorHighlighter + GutterColor
Highlighting color values in css. Color Highliter emphasizes the meanings of colors themselves. And thanks to GutterColor, circles with color appear on the left (requires ImageMagick installed).
Color picker - works by hotkey Ctrl + Shift + C.
Plain Tasks
Task tracker. A simple todo sheet with beautiful design. Everything is saved in text format.
MarkdownEditing
Convenient editing of markdown files, for example for Github.
Sidebar Enhancements
Improved sidebar.
ApplySyntax
Automatic file type detector.
SublimeGit
Full featured GIT integration
SidebarGit
GIT context menu in the editor sidebar. Suitable for those who are not very fond of the command line.
GitGutter
Diffs for guitar. Shows changes since the last commit on the left.
HTML-CSS-JS Prettify
Code formatting. node.js required. Hotkey Ctrl + Shift + H.
Inc-Dec-Value
Increases/decreases numeric values by Alt + up/down arrow. Like in firebug or chrome developer tools.
EasyMotion
Quickly move through the text. For fans of Vintage Mode and not only for them, it is recommended.
AdvancedNewFile
Quick file creation. Ctrl + Alt + N. If you use Evernote, it will open new entry in Evernote - don't forget to change the hotkeys.
Although SublimeText provides a lot of great features that help our work as web developers, like any other tool, there is always room for improvement.
1.Package Control
Package Control is the first thing you should install right after installing SublimeText. With it, you can install, update, uninstall and easily view the list of packages or plugins that you have installed in SublimeText.
2. Emmet
In a nutshell, Emmet will allow us to write HTML and CSS is faster using abbreviations/shortcuts, will then expand them to be valid HTML tags. This is one of my most used shortcuts that saves time:
((h4>a)+p>img)*12
It will create 12 category lists along with the image. I can then populate my content without worrying about mixing formats.
3. SublimeLinter
SublimeLinter has recently been restored and edited for SublimeText 3. new version, of course, a set of new functions has been installed. Instead of putting all Linter in one package, the developer allows you to select and install only the ones you use regularly.
4. SublimeEnhancements
SidebarEnhancements has several new things in the sidebar menu, including New File Creation in the current project folder, Moving File and Folder, Duplicating File and Folder, Open in Finder and Browser, (Open in Finder and Browser), Refresh (Update) and much more.
5.
With PackageResourceViewer, you can view and edit correspondence that easily comes from SublimeText. You can also extract the package, which will copy it to the user's folder so you can edit it safely.
6. Git
This plugin integrates SublimeText with Git so you can run some Git commands from SublimeText such as Add and Committing Files, Viewing Log, Annotating Files.
7.Terminal
This plugin will allow you to open your projects folder in Terminal directly from SublimeText - with a hotkey. This is a very useful plugin when you need to do command lines in this folder.
8.CSSComb
CSSComb is a plugin for sorting CSS properties. If you need your codes to be neat and in the correct order, this plugin will allow you to customize the order of properties. It's also useful when you're working with a team of developers, each with their own coding preferences.
9.CanIUse
With this plugin, you can check if the browser supports the properties of the CSS and HTML elements you are using. To use it, highlight a CSS property or HTML element and it will take you to the corresponding page on CanIUse.com.
10. Alignment
Alignment will allow you to align codes including PHP, JavaScript and CSS, making it neater and easier to read. See the following screenshot for a before-and-after comparison.
11. Trimmer
This plugin will help you remove unnecessary spaces as well as irregular spaces which can lead to some errors in JavaScript.
12.ColorPicker
With this plugin you can select and add colors to SublimeText with the native color engine from your operating system.
13.MarkDown Editing
Even though SublimeText can view and edit Markdown files, it treats it as plain text with very poor formatting. This plugin is useful for giving more efficient support with proper color highlighting for Markdown in SublimeText.
14. FileDiffs
FileDiffs allows you to see the differences between two files in a SublimeText. You can compare files with copied data from Clipboard, File in the Project, File that is currently open, and between saved and unsaved files.
15. DocBlockr
DocBlokr will allow you to create documentation or annotation of your codes with ease, by parsing functions, parameters, variables and automatically adding some possible documentation (see screenshot below).
“Okay, I think I have a blog. I haven't gone that far yet. What's next?"
Many bloggers probably asked themselves a similar question when they thought about what their first post would be. In order not to let this thought completely fill your head, let's get down to business.
Sublime: done
For a long time in development I used Webstorm from JetBrains. It's a pretty solid IDE with a huge amount Pros: auto-complete code, built-in multi-window terminal and a separate terminal for running a node.js server, many integrations and plugins, file watchers and a bunch of other useful things. However, there are some downsides, and the main disadvantage for me was the lack of performance. The launch of a large project lasted almost a minute, constant re-indexing resulted in noticeable slowdowns - even after all sorts of dances with a tambourine, increasing the allocated memory and turning off everything.
As a result, I decided to take a look at popular editor Sublime Text 3 (hereinafter ST3). And I really liked it - who doesn’t like the almost instantaneous discovery of a project, especially after everything we’ve been through? Ultimately, I decided to say goodbye to my dear, but very slow Webstorm.
And then I looked at the quantity and quality of the plugins for ST3, and realized that I was unlikely to have any regrets about this.
So what plugins do I find useful as a js developer?
Terminal
What I really miss is the built-in terminal in Webstorm. This plugin relieves at least a little of this slight melancholy. With default settings, ctrl + shift + t opens a terminal.
Git
Integration with Git. Probably, you don’t have to go into the terminal at all, but I don’t really trust it yet. There is also SideBarGit, which allows you to commit (and more) directly from context menu sidebar.
Visual
Seti UI Icons for Sublime Text
What I immediately began to miss in ST3 compared to Webstorm were file icons in the sidebar. They look nice and take less time to identify the file. Package Control doesn’t have it - you’ll have to squat with the installation. Oh, and there is still no icon for jsx files.
Oceanic Next Color Scheme
pretty dark theme. Nraitsa.
SyncedSidebarBg
Changes background color sidebar per color current topic. It’s a small thing, but it’s nice, and it doesn’t hurt the eyes.
That’s all, if I find interesting and useful plugins, maybe I’ll write a similar post. See you in touch!