Browse
The WakaTime plugin works for both Sublime Text 2 and Sublime Text 3 and is open source on GitHub. Install Package Control. Inside Sublime, select Tools → Command Palette. Javascript Beautifier Plugin with Sublime 2 uses the the JavaScript formatting python module from jsbeautifier.org. The plugin is pretty basic at the moment, doesnt check to make sure you are in a.
JavaScript Completions for sublime text. It helps you to write your scripts more quickly with hints and completions.
Installs
- Total531K
- Win362K
- Mac91K
- Linux79K
Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 96 | 141 | 108 | 151 | 95 | 96 | 64 | 108 | 120 | 91 | 120 | 98 | 102 | 106 | 112 | 106 | 116 | 113 | 94 | 128 | 119 | 129 | 125 | 143 | 142 | 93 | 122 | 129 | 142 | 154 | 133 | 153 | 68 | 131 | 138 | 163 | 118 | 151 | 136 | 95 | 74 | 132 | 122 | 141 | 153 | 160 |
Mac | 21 | 19 | 14 | 17 | 19 | 11 | 7 | 12 | 19 | 20 | 13 | 13 | 8 | 9 | 14 | 15 | 12 | 16 | 15 | 16 | 12 | 10 | 16 | 26 | 18 | 10 | 8 | 8 | 24 | 12 | 26 | 24 | 21 | 17 | 19 | 14 | 12 | 23 | 19 | 17 | 7 | 9 | 22 | 15 | 20 | 19 |
Linux | 27 | 36 | 27 | 25 | 21 | 27 | 20 | 17 | 27 | 19 | 24 | 20 | 26 | 26 | 18 | 18 | 19 | 21 | 24 | 15 | 36 | 24 | 20 | 20 | 17 | 24 | 27 | 26 | 18 | 25 | 29 | 21 | 22 | 18 | 26 | 25 | 37 | 30 | 21 | 18 | 17 | 20 | 19 | 33 | 29 | 24 |
Readme
- Source
- raw.githubusercontent.com
I developed a new plugin with new features thanks to Flow (javascript static type checker from Facebook).So, I will NO LONGER SUPPORT 'JavaScript Completions' plugin, except in particular cases. I'm going to focus only on this new one!You can find it on: 👉👉 https://github.com/pichillilorenzo/JavaScriptEnhancements 👈👈This new plugin offers not only a BETTER AUTOCOMPLETE but a lot of features about creating, developing and managing JavaScript projects, such as:- JavaScript real-time errors- Code Refactoring- Local bookmarks project- Cordova projects (run cordova emulate, build, compile, serve, etc. directly from Sublime Text!)- Ionic v1 and v2 (it includes also v3) projects (same as Cordova projects!)- Angular v1 and v2 (it includes also v4 and v5) projects- Vue projects (only about the creation at this moment, see the wiki)- React projects (only about the creation at this moment)- React Native projects (only about the creation at this moment. I will add also **NativeScript** support)- Express projects (only about the creation at this moment)- Yeoman generators- etc.You could use it also in existing projects!! (see the Wiki - https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki)It will turn Sublime Text into a JavaScript IDE like!
OS SUPPORTED NOW by this new plugin
- Linux (64-bit)- Mac OS X - Windows (64-bit): released without the use of [TerminalView](https://github.com/Wramberg/TerminalView) plugin. For each feature (like also creating a project) will be used the cmd.exe shell (so during the creation of a project **don't close it** until it finishes!). Unfortunately the TerminalView plugin supports only **Linux-based OS** 😞 . Has someone any advice or idea about that? Is there something similar to the TerminalView plugin for Windows?? Thanks!Email me for any questions or doubts about this new project on: pichillilorenzo@gmail.comThanks for your support!!!JavaScript Completions
JavaScript Completions for sublime text
It helps you to write your scripts more quickly with hints and completions.
Sublime Text Debugger
jQuery and NativeScript completions disabled by default!You can enable them on Preferences -> Package Settings -> JavaScript Completions.
Some features could use npm!
It will be downloaded automatically with nodejs!
Features list:- 'Find JavaScript Description' Feature- 'On Hover Description' Feature- 'Evaluate JavaScript' Feature- 'Can I use?' Feature- 'JSDoc' Feature- Context menu options
Usage
To try it, just write.
Examples:
description-Name_of_function/property/method
shows to you the explanation of the function/property/method and its syntax.
Information about the description of function/property/method has been taken on this sites:
ENABLE or DISABLE completions
You can ENABLE or DISABLE completions! Just go to Preferences -> Package Settings -> JavaScript Completions
'Find JavaScript Description' Feature
Supported only by Sublime Text 3
You can check the description of function/property/method by selecting the word (or, in case, it will take the first word near the blinking cursor) you want find. 'right-click' on your mouse and click on 'Find JavaScript Description'.
It will show a popup with the list of possible descriptions or, in some case, the direct description.
Key-Map list: Preferences -> Package Settings -> JavaScript Completions -> Key Bindings - Default.
'On Hover Description' Feature
Supported only by Sublime Text 3, Build >= 3124
Just put the cursor over a name of a function, property or constructor and it will appear a little popup with all matching found from the /sublime-completions
list enabled.
Sublime Text 3 Javascript Autocomplete
- F = function
- P = property
- C = constructor
Example:
'Evaluate JavaScript' Feature
Supported only by Sublime Text 3
Logic pro x current version. This feature uses node.js installed locally by this plugin.
You can change the path of 'node.js' and 'npm' on Preferences -> Package Settings -> JavaScript Completions -> Settings - Default
You can evaluate the entire text selection or the current line! If you select a text region and evaluate it, in the gutter of the editor will appear 2 white dots.The first white dot represents the start of the region and the second white dot represents the end of the region.You can eventually modify the region and, without reselect the same region, you can evaluate it again! If you want hide this 2 dots, there is an entry on the context menu 'Evaluate JavaScript'.
When you evaluate code, this plugin will prepend 'use strict';
automaticaly!
There are two main mode to evaluate code:- eval- print
Key-Map list: Preferences -> Package Settings -> JavaScript Completions -> Key Bindings - Default.
'Can I use?' Feature
Supported only by Sublime Text 3, Build >= 3124
This feature uses 'can i use' json data from this repository, that contains raw data from the http://caniuse.com support tables.
Thanks to @Fyrd.
You can use this feature in HTML, CSS and JavaScript context!
Just put the cursor on the word you want to check, 'right-click' -> 'Can I use?'
and it will appear an input panel with all items that have a name matching with the word.
You can use key-map: ctrl+alt+w
(super+alt+w
on Windows). Key-Map list: Preferences -> Package Settings -> JavaScript Completions -> Key Bindings - Default.
After selecting an item from the list, it will appear a popup with all information from the http://caniuse.com support tables.
You can find it under 'Tools'
menu -> 'JavaScript Completions'
-> Search on 'Can I use' list
.
Example :
'JSDoc' Feature
Supported only by Sublime Text 3
Requires npm
This feature uses https://github.com/jsdoc3/jsdoc to generate API documentation.
You can find it under 'Tools'
menu -> 'JavaScript Completions'
.
There are 2 main menu items:- Generate Documentation- Add jsdoc configuration file to the current project folder
These items can be used only with a project folder opened.
'Generate Documentation'
uses the jsdoc command line to generate documentation.
Sublime Text 3 Javascript
It uses the defaukt conf.json
file for configuration.
The options (with default values) availables are:
'Add jsdoc configuration file to the current project folder'
will add a conf.json
file with default values to the current project folder.
How to use JSDoc: http://usejsdoc.org/
Context menu options
Context menu options:- Surround With- Delete Surrounded- Create Class from object literal- Sort array- Split string lines to variable
Surround With
You MUST first select text to 'enable' these options.
You can surround code with:- if statement- if else statement (this works only if you selected 2 regions, see example)- while statement- do while statement- for statement- try catch statement- try catch finally statement
This option works also on multiple selections at once.
Delete Surrounded
Options are:- Strip quoted string
This option works also on multiple selections at once.
Create Class from object literal
This option create a JavaScript Class from an object literal (Constructor with all setter and getter for each field).
You can set default values or use the string 'required'
to say that a field hasn't a default value.
To work properly, you MUST declare a variable and assign an object literal to it, like this example:
This option works also on multiple selections at once.
Sort array
Just put the cursor between brackets and will appear a menu with these options:- Sort array ASC ( compare function: function(x,y){return x-y;}
)- Sort array DESC ( compare function: function(x,y){return y-x;}
)- Sort array alphabetically ASC- Sort array alphabetically DESC
This option works also on multiple selections at once.
Examples of usage:
Split string lines to variable
Just put the cursor between a string with multiple lines and this option will appear in the context menu.
It will split the string and for each line will be concatenated to a variable named 'str'.
This option works also on multiple selections at once.
Example:
MIT License