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
Copy file name to clipboardExpand all lines: README.md
+26-48Lines changed: 26 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,27 +24,7 @@ the pull request back to that branch.
24
24
25
25
## Changelog
26
26
27
-
-**v2.14.1**, *17 Aug 2015*
28
-
- Fix deindentation bug with reparsing doc blocks
29
-
-**v2.14.0**, *15 Jun 2015*
30
-
- Adds `jsdocs_function_description` option (thanks to [Gerard Roche](https://github.com/gerardroche))
31
-
- Better handling of parser errors (thanks to Gerard Roche)
32
-
-**v2.13.3**, *4 Jun 2015*
33
-
- PHP array shorthand is identified correctly (thanks to [Gerard Roche](https://github.com/gerardroche))
34
-
- Decorating comments when using tabs for indentation works better (thanks to [Jack Cherng](https://github.com/jfcherng))
35
-
-**v2.13.2**, *30 Mar 2015*
36
-
- Updated PHPDoc autocompletions to align with the new spec (thanks to [Gerard Roche](https://github.com/gerardroche))
37
-
- Properly handle the case when commas appear inside a type name in Java
38
-
- Added link to README in the preferences menu
39
-
-**v2.13.1**, *29 Mar 2015*
40
-
- Adds support for Apex language (thanks @michacom)
41
-
- Fixes identifying multidimensional arrays in C/C++
42
-
- Fixes reformatting and reparsing docblocks in Java
43
-
- Adds options to disable:
44
-
- opening an inline docblock with space (`jsdocs_quick_open_inline`)
45
-
- inline comment decoration (`jsdocs_decorate`)
46
-
47
-
Older history can be found in [the history file][history].
27
+
See [the history file][history].
48
28
49
29
## Usage
50
30
@@ -100,7 +80,7 @@ DocBlockr will also try to determine the type of the variable from its name. Var
100
80
101
81
```js
102
82
{
103
-
"jsdocs_notation_map": [
83
+
"docblockr.notation_map": [
104
84
{
105
85
"prefix":"b", /* a prefix, matches only if followed by an underscore or A-Z */
106
86
"type":"bool"/* translates to "Boolean" in javascript, "bool" in PHP */
@@ -152,7 +132,7 @@ If you write a double-slash comment and then press `Ctrl+Enter`, DocBlockr will
152
132
// Foo bar baz //
153
133
/////////////////
154
134
155
-
This can be disabled by changing the `jsdocs_decorate` setting to `false`.
135
+
This can be disabled by changing the `docblockr.decorate` setting to `false`.
156
136
157
137
### Reparsing a DocBlock
158
138
@@ -182,21 +162,19 @@ Finally, typing `@` inside a docblock will show a completion list for all tags s
182
162
183
163
You can access the configuration settings by selecting `Preferences -> Package Settings -> DocBlockr`.
184
164
185
-
*The `jsdocs_*` prefix is a legacy from days gone by...*
165
+
-`docblockr.indentation_spaces`*(Number)* The number of spaces to indent after the leading asterisk.
186
166
187
-
-`jsdocs_indentation_spaces`*(Number)* The number of spaces to indent after the leading asterisk.
188
-
189
-
// jsdocs_indentation_spaces = 1
167
+
// docblockr.indentation_spaces = 1
190
168
/**
191
169
* foo
192
170
*/
193
171
194
-
// jsdocs_indentation_spaces = 5
172
+
// docblockr.indentation_spaces = 5
195
173
/**
196
174
* foo
197
175
*/
198
176
199
-
-`jsdocs_align_tags`*(String)* Whether the words following the tags should align. Possible values are `'no'`, `'shallow'` and `'deep'`
177
+
-`docblockr.align_tags`*(String)* Whether the words following the tags should align. Possible values are `'no'`, `'shallow'` and `'deep'`
200
178
201
179
> For backwards compatibility, `false` is equivalent to `'no'`, `true` is equivalent to `'shallow'`
202
180
@@ -213,9 +191,9 @@ You can access the configuration settings by selecting `Preferences -> Package S
213
191
@property {Number} blahblah desc3
214
192
215
193
216
-
-`jsdocs_extra_tags`*(Array.String)* An array of strings, each representing extra boilerplate comments to add to *functions*. These can also include arbitrary text (not just tags).
194
+
-`docblockr.extra_tags`*(Array.String)* An array of strings, each representing extra boilerplate comments to add to *functions*. These can also include arbitrary text (not just tags).
217
195
218
-
// jsdocs_extra_tags = ['This is a cool function', '@author nickf', '@version ${1:[version]}']
196
+
// docblockr.extra_tags = ['This is a cool function', '@author nickf', '@version ${1:[version]}']
219
197
/**<<enter>>
220
198
function foo (x) {}
221
199
@@ -231,7 +209,7 @@ You can access the configuration settings by selecting `Preferences -> Package S
231
209
232
210
Basic variable substitution is supported here for the variables `date` and `datetime`, wrapped in double curly brackets.
@@ -242,37 +220,37 @@ You can access the configuration settings by selecting `Preferences -> Package S
242
220
* @return {[type]}
243
221
*/
244
222
245
-
-`jsdocs_extra_tags_go_after`*(Boolean)* If true, the extra tags are placed at the end of the block (after param/return). Default: `false`
223
+
-`docblockr.extra_tags_go_after`*(Boolean)* If true, the extra tags are placed at the end of the block (after param/return). Default: `false`
246
224
247
-
-`jsdocs_extend_double_slash`*(Boolean)* Whether double-slash comments should be extended. An example of this feature is described above. Default: `true`
225
+
-`docblockr.extend_double_slash`*(Boolean)* Whether double-slash comments should be extended. An example of this feature is described above. Default: `true`
248
226
249
-
-`jsdocs_deep_indent`*(Boolean)* Whether pressing tab at the start of a line in docblock should indent to match the previous line's description field. An example of this feature is described above. Default: `true`
227
+
-`docblockr.deep_indent`*(Boolean)* Whether pressing tab at the start of a line in docblock should indent to match the previous line's description field. An example of this feature is described above. Default: `true`
250
228
251
-
-`jsdocs_notation_map`*(Array)* An array of notation objects. Each notation object must define either a `prefix` OR a `regex` property, and a `type` property.
229
+
-`docblockr.notation_map`*(Array)* An array of notation objects. Each notation object must define either a `prefix` OR a `regex` property, and a `type` property.
252
230
253
-
-`jsdocs_return_tag`*(String)* The text which should be used for a `@return` tag. By default, `@return` is used, however this can be changed to `@returns` if you use that style.
231
+
-`docblockr.return_tag`*(String)* The text which should be used for a `@return` tag. By default, `@return` is used, however this can be changed to `@returns` if you use that style.
254
232
255
-
-`jsdocs_spacer_between_sections`*(Boolean|String)* If true, then extra blank lines are inserted between the sections of the docblock. If set to `"after_description"` then a spacer will only be added between the description and the first tag. Default: `false`.
233
+
-`docblockr.spacer_between_sections`*(Boolean|String)* If true, then extra blank lines are inserted between the sections of the docblock. If set to `"after_description"` then a spacer will only be added between the description and the first tag. Default: `false`.
256
234
257
-
-`jsdocs_indentation_spaces_same_para`*(Number)* Described above in the *Reformatting paragraphs* section. Default: `1`
235
+
-`docblockr.indentation_spaces_same_para`*(Number)* Described above in the *Reformatting paragraphs* section. Default: `1`
258
236
259
-
-`jsdocs_autoadd_method_tag`*(Boolean)* Add a `@method` tag to docblocks of functions. Default: `false`
237
+
-`docblockr.autoadd_method_tag`*(Boolean)* Add a `@method` tag to docblocks of functions. Default: `false`
260
238
261
-
-`jsdocs_simple_mode`*(Boolean)* If true, DocBlockr won't add a template when creating a doc block before a function or variable. Useful if you don't want to write Javadoc-style, but still want your editor to help when writing block comments. Default: `false`
239
+
-`docblockr.simple_mode`*(Boolean)* If true, DocBlockr won't add a template when creating a doc block before a function or variable. Useful if you don't want to write Javadoc-style, but still want your editor to help when writing block comments. Default: `false`
262
240
263
-
-`jsdocs_lower_case_primitives`*(Boolean)* If true, primitive data types are added in lower case, eg "number" instead of "Number". Default: `false`
241
+
-`docblockr.lower_case_primitives`*(Boolean)* If true, primitive data types are added in lower case, eg "number" instead of "Number". Default: `false`
264
242
265
-
-`jsdocs_short_primitives`*(Boolean)* If true, the primitives `Boolean` and `Integer` are shortened to `Bool` and `Int`. Default: `false`
243
+
-`docblockr.short_primitives`*(Boolean)* If true, the primitives `Boolean` and `Integer` are shortened to `Bool` and `Int`. Default: `false`
266
244
267
-
-`jsdocs_newline_after_block`*(Boolean)* If true, an extra line break is added after the end of a docblock to separate it from the code. Default `false`
245
+
-`docblockr.newline_after_block`*(Boolean)* If true, an extra line break is added after the end of a docblock to separate it from the code. Default `false`
268
246
269
-
-`jsdocs_param_name`*(Boolean)* If true, the name of a function parameter is added to the template. If false, it is omitted. Default: `true`
247
+
-`docblockr.param_name`*(Boolean)* If true, the name of a function parameter is added to the template. If false, it is omitted. Default: `true`
270
248
271
-
-`jsdocs_decorate`*(Boolean)* If false, disable decoration of single line comments with <kbd>Ctrl+Enter</kbd>. Default: `true`
249
+
-`docblockr.decorate`*(Boolean)* If false, disable decoration of single line comments with <kbd>Ctrl+Enter</kbd>. Default: `true`
272
250
273
-
-`jsdocs_quick_open_inline`*(Boolean)* If true, an inline docblock will be opened when pressing <kbd>Space</kbd> after an opener (`/**`). When set to `false`, these can be opened by pressing <kbd>Shift+Enter</kbd>. Default: `true`
251
+
-`docblockr.quick_open_inline`*(Boolean)* If true, an inline docblock will be opened when pressing <kbd>Space</kbd> after an opener (`/**`). When set to `false`, these can be opened by pressing <kbd>Shift+Enter</kbd>. Default: `true`
274
252
275
-
-`jsdocs_function_description`*(Boolean)* If true, a 'description' line will be added for functions. Default: `true`
253
+
-`docblockr.function_description`*(Boolean)* If true, a 'description' line will be added for functions. Default: `true`
0 commit comments