You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<strong>Supported only by Sublime Text 3, Build >= 3124</strong>
67
+
68
+
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 <code>/sublime-completions</code> list enabled.
69
+
70
+
- F = function
71
+
- P = property
72
+
- C = constructor
73
+
74
+
Example:
75
+
76
+
<imgsrc="https://media.giphy.com/media/l2Sq7JFMFtMJY3Eo8/giphy.gif"alt="example #1 On Hover Description Feature">
You can ENABLE or DISABLE completions! Just go to Preferences -> Package Settings -> JavaScript Completions
116
+
<h3id="can-i-use">"Can I use?" Feature</h3>
117
+
118
+
<strong>Supported only by Sublime Text 3, Build >= 3124</strong>
90
119
91
-
<h3>Other Context menu options</h3>
120
+
This feature uses "can i use" json data from this [repository](https://github.com/Fyrd/caniuse), that contains raw data from the [http://caniuse.com](http://caniuse.com) support tables.
121
+
122
+
Thanks to @Fyrd.
123
+
124
+
You can use this feature in HTML, CSS and JavaScript context!
125
+
126
+
Just put the cursor on the word you want to check, "right-click" -> <code>"Can I use?"</code> and it will appear an input panel with all items that have a name matching with the word.
127
+
128
+
You can use key-map: <code>ctrl+alt+w</code>. You can also change it. Just go to Preferences -> Package Settings -> JavaScript Completions Tools -> Key Bindings - User.
129
+
130
+
After selecting an item from the list, it will appear a popup with all information from the [http://caniuse.com](http://caniuse.com) support tables.
131
+
132
+
You can also use the menu <code>JavaScript Completions Tools</code> on the top and select <code>Search on "Can I use" list</code> to search what you want.
133
+
134
+
Example :
135
+
136
+
<imgsrc="https://media.giphy.com/media/26ufnXCKlXwFghwDS/giphy.gif"alt="example #1 Can I use? Feature">
137
+
138
+
<imgsrc="http://s17.postimg.org/8hqxb0fvj/Schermata_2016_09_24_alle_21_07_44.png"alt="example #2 Can I use? Feature">
139
+
140
+
<imgsrc="http://s17.postimg.org/wa4u0a7a7/Schermata_2016_09_24_alle_21_07_55.png"alt="example #3 Can I use? Feature">
141
+
142
+
<h3id="context-menu-options">Context menu options</h3>
92
143
93
144
Context menu options:
94
145
- <ahref="#surround-with">Surround With</a>
95
146
- <ahref="#delete-surround">Delete Surrounded</a>
96
147
- <ahref="#create-class-from-object-literal">Create Class from object literal</a>
97
148
- <ahref="#sort-array">Sort array</a>
149
+
- <ahref="#split-string-lines-to-variable">Split string lines to variable</a>
98
150
99
151
<h4id="surround-with">Surround With</h4>
100
152
@@ -111,7 +163,7 @@ You can surround code with:
111
163
- Multi-line comment
112
164
- Single-line comment
113
165
114
-
This options works also on multiple selections at once.
166
+
This option works also on multiple selections at once.
115
167
116
168
<h4id="delete-surround">Delete Surrounded</h4>
117
169
@@ -120,7 +172,7 @@ Options are:
120
172
- Delete single-line comment
121
173
- Strip quoted string
122
174
123
-
This options works also on multiple selections at once.
175
+
This option works also on multiple selections at once.
124
176
125
177
<h4id="create-class-from-object-literal">Create Class from object literal</h4>
126
178
@@ -139,22 +191,34 @@ var Person = {
139
191
}
140
192
```
141
193
142
-
This options works also on multiple selections at once.
194
+
This option works also on multiple selections at once.
143
195
144
196
<h4id="sort-array">Sort array</h4>
145
197
146
-
Just put the cursor between brackets and will appear a menu with this options:
198
+
Just put the cursor between brackets and will appear a menu with these options:
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.
11
+
- F = function
12
+
- P = property
13
+
- C = constructor
14
+
15
+
16
+
- "Can I use?" Feature :
17
+
18
+
Supported only by Sublime Text 3, Build >= 3124
19
+
20
+
This feature uses "can i use" json data from this repository: https://github.com/Fyrd/caniuse, that contains raw data from the http://caniuse.com support tables.
21
+
Thanks to @Fyrd.
22
+
You can use this feature in HTML, CSS and JavaScript context!
23
+
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.
24
+
You can use key-map: ctrl+alt+w. You can also change it. Just go to Preferences -> Package Settings -> JavaScript Completions Tools -> Key Bindings - User.
25
+
After selecting an item from the list, it will appear a popup with all information from the http://caniuse.com support tables.
26
+
27
+
28
+
- Context menu options:
29
+
30
+
- "Split string lines to variable" feature :
31
+
32
+
Just put the cursor between a string with multiple lines and this option will appear in the context menu.
33
+
It will split the string and for each line will be concatenated to a variable named "str".
34
+
This option works also on multiple selections at once.
0 commit comments