Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit ac8d58e

Browse files
committed
Add code hints for preferences
1 parent 76838a4 commit ac8d58e

8 files changed

Lines changed: 1842 additions & 0 deletions

File tree

src/brackets.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ define(function (require, exports, module) {
109109
require("view/ThemeManager");
110110
require("thirdparty/lodash");
111111
require("language/XMLUtils");
112+
require("language/JSONUtils");
112113

113114
// DEPRECATED: In future we want to remove the global CodeMirror, but for now we
114115
// expose our required CodeMirror globally so as to avoid breaking extensions in the
Lines changed: 346 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
1+
{
2+
"closeBrackets": {
3+
"type": "Boolean",
4+
"description": "Automatically close braces, brackets and parentheses"
5+
},
6+
"closeOthers.above": {
7+
"type": "Boolean",
8+
"description": "False to remove the Close Others Above from the Working Files context menu"
9+
},
10+
"closeOthers.below": {
11+
"type": "Boolean",
12+
"description": "False to remove the Close Others Below from the Working Files context menu"
13+
},
14+
"closeOthers.others": {
15+
"type": "Boolean",
16+
"description": "False to remove the Close Others from the Working Files context menu"
17+
},
18+
"closeTags": {
19+
"type": "Object",
20+
"description": "Sets the tag closing options",
21+
"keys": {
22+
"dontCloseTags": {
23+
"type": "Array",
24+
"description": "An array of tags that should not be auto-closed"
25+
},
26+
"whenOpening": {
27+
"type": "Boolean",
28+
"description": "Close with > of opening tag is typed"
29+
},
30+
"whenClosing": {
31+
"type": "Boolean",
32+
"description": "Close when / of closing tag is typed"
33+
},
34+
"indentTags": {
35+
"type": "Array",
36+
"description": "An array of tags that when opened has a blank line"
37+
}
38+
}
39+
},
40+
"code-folding.alwaysUseIndentFold": {
41+
"type": "Boolean",
42+
"description": "Always generate collapsible section markers when indent level changes"
43+
},
44+
"code-folding.enabled": {
45+
"type": "Boolean",
46+
"description": "True to show collapsible section indicators in the gutter"
47+
},
48+
"code-folding.hideUntilMouseover": {
49+
"type": "Boolean",
50+
"description": "Section-collapsing markers are only visible when you move the mouse over the gutter"
51+
},
52+
"code-folding.maxFoldLevel": {
53+
"type": "Number",
54+
"description": "Limits how many levels deep Collapse All applies"
55+
},
56+
"code-folding.minFoldSize": {
57+
"type": "Number",
58+
"description": "Minimum lines before a collapsible section icon appears"
59+
},
60+
"code-folding.saveFoldStates": {
61+
"type": "Boolean",
62+
"description": "Remember collapsed sections if you close and reopen a file or project"
63+
},
64+
"codehint.AttrHints": {
65+
"type": "Boolean",
66+
"description": "Enable/disable HTML attribute hints"
67+
},
68+
"codehint.CssPropHints": {
69+
"type": "Boolean",
70+
"description": "Enable/disable CSS/LESS/SCSS property hints"
71+
},
72+
"codehint.JSHints": {
73+
"type": "Boolean",
74+
"description": "Enable/disable JavaScript code hints"
75+
},
76+
"codehint.PrefHints": {
77+
"type": "Boolean",
78+
"description": "Enable/disable Prefrences code hints"
79+
},
80+
"codehint.SpecialCharHints": {
81+
"type": "Boolean",
82+
"description": "Enable/disable HTML entity hints"
83+
},
84+
"codehint.SVGHints": {
85+
"type": "Boolean",
86+
"description": "Enable/disable SVG code hints"
87+
},
88+
"codehint.TagHints": {
89+
"type": "Boolean",
90+
"description": "Enable/disable HTML tag hints"
91+
},
92+
"codehint.UrlCodeHints": {
93+
"type": "Boolean",
94+
"description": "Enable/disable URL hints in HTML & CSS/LESS/SCSS"
95+
},
96+
"dragDropText": {
97+
"type": "Boolean",
98+
"description": "Enable/disable Drag & Drop functionality"
99+
},
100+
"healthData.healthDataTracking": {
101+
"type": "Boolean",
102+
"description": "Enable the Health Data Tracking"
103+
},
104+
"highlightMatches": {
105+
"type": "Boolean",
106+
"description": "Enables automatic highlighting of matching strings throughout the document",
107+
"keys": {
108+
"showToken": {
109+
"type": "Boolean",
110+
"description": "highlight all strings that match the token the cursor is currently in (no selection needed"
111+
},
112+
"wordsOnly": {
113+
"type": "Boolean",
114+
"description": "highlight only when selection is a complete token"
115+
}
116+
}
117+
},
118+
"insertHintOnTab": {
119+
"type": "Boolean",
120+
"description": "True to insert the currently selected code hint on tab"
121+
},
122+
"jscodehints.noHintsOnDot": {
123+
"type": "Boolean",
124+
"description": "If true, do not automatically show JS code hints when . is typed"
125+
},
126+
"jslint.options": {
127+
"type": "Object",
128+
"description": "An object with the default options for JSLint",
129+
"keys": {
130+
"ass": {
131+
"type": "Boolean",
132+
"description": "True if assignment expressions should be allowed"
133+
},
134+
"bitwise": {
135+
"type": "Boolean",
136+
"description": "True if bitwise operators should be allowed"
137+
},
138+
"browser": {
139+
"type": "Boolean",
140+
"description": "True if standard browser globals should be predefined"
141+
},
142+
"closure": {
143+
"type": "Boolean",
144+
"description": "True if Google Closure idioms should be allowed"
145+
},
146+
"continue": {
147+
"type": "Boolean",
148+
"description": "True if continue should be allowed"
149+
},
150+
"couch": {
151+
"type": "Boolean",
152+
"description": "True if CouchDB globals should be predefined"
153+
},
154+
"debug": {
155+
"type": "Boolean",
156+
"description": "True if debugger statements should be allowed"
157+
},
158+
"devel": {
159+
"type": "Boolean",
160+
"description": "True if browser globals useful in development should be predefined"
161+
},
162+
"eqeq": {
163+
"type": "Boolean",
164+
"description": "True if == and != should be allowed"
165+
},
166+
"es6": {
167+
"type": "Boolean",
168+
"description": "True if ES6 globals should be predefined"
169+
},
170+
"evil": {
171+
"type": "Boolean",
172+
"description": "True if eval should be allowed"
173+
},
174+
"forin": {
175+
"type": "Boolean",
176+
"description": "True if unfiltered for in should be allowd"
177+
},
178+
"indent": {
179+
"type": "Number",
180+
"description": "Set a specific tab width"
181+
},
182+
"maxerr": {
183+
"type": "Number",
184+
"description": "The maximum number of warnings reported"
185+
},
186+
"maxlen": {
187+
"type": "Number",
188+
"description": "The maximum number of characters in a line"
189+
},
190+
"newcap": {
191+
"type": "Boolean",
192+
"description": "True to allow uncapitalized constructors"
193+
},
194+
"node": {
195+
"type": "Boolean",
196+
"description": "True if Node.js globals should be predefined"
197+
},
198+
"nomen": {
199+
"type": "Boolean",
200+
"description": "Allow dangling underscore in identifiers"
201+
},
202+
"passfail": {
203+
"type": "Boolean",
204+
"description": "True to stop on first error"
205+
},
206+
"plusplus": {
207+
"type": "Boolean",
208+
"description": "True to allows ++ and --"
209+
},
210+
"regexp": {
211+
"type": "Boolean",
212+
"description": "Allow . and [^...]. in RegExp"
213+
},
214+
"rhino": {
215+
"type": "Boolean",
216+
"description": "True if Rhino globals should be predefined"
217+
},
218+
"sloppy": {
219+
"type": "Boolean",
220+
"description": "True to allow missing `use strict` pragma"
221+
},
222+
"stupid": {
223+
"type": "Boolean",
224+
"description": "True to allow stupidity"
225+
},
226+
"sub": {
227+
"type": "Boolean",
228+
"description": "True to allow inefficient subscripting"
229+
},
230+
"todo": {
231+
"type": "Boolean",
232+
"description": "True to allow TODO comments"
233+
},
234+
"unparam": {
235+
"type": "Boolean",
236+
"description": "True to allow unused parameters"
237+
},
238+
"vars": {
239+
"type": "Boolean",
240+
"description": "True to allow more than 1 vars in a function"
241+
},
242+
"white": {
243+
"type": "Boolean",
244+
"description": "True if the whitespace rules should be ignored"
245+
}
246+
}
247+
},
248+
"language": {
249+
"type": "Object",
250+
"description": "Language specific settings"
251+
},
252+
"language.fileExtensions": {
253+
"type": "Object",
254+
"description": "Additional mappings from file extension to language name"
255+
},
256+
"language.fileNames": {
257+
"type": "Object",
258+
"description": "Additional mappings from file name to language name"
259+
},
260+
"linting.enabled": {
261+
"type": "Boolean",
262+
"description": "Determines if Code Inspection is on"
263+
},
264+
"linting.prefer": {
265+
"type": "Array",
266+
"description": "Array of linters to run first",
267+
"values": ["JSLint", "JSHint"],
268+
"valueType": "String"
269+
},
270+
"livedev.multibrowser": {
271+
"type": "Boolean",
272+
"description": "True to enable experimental Live Preview"
273+
},
274+
"linting.usePreferredOnly": {
275+
"type": "Boolean",
276+
"description": "If set to true, then only providers specified in linting.prefer will be run"
277+
},
278+
"maxCodeHints": {
279+
"type": "Number",
280+
"description": "Maximum code hints displayed at once"
281+
},
282+
"path": {
283+
"type": "Object",
284+
"description": "Path specific settings"
285+
},
286+
"proxy": {
287+
"type": "String",
288+
"description": "The URL of the proxy server used for extension installation"
289+
},
290+
"scrollPastEnd": {
291+
"type": "Boolean",
292+
"description": "True to be able to scroll beyond the end of the document"
293+
},
294+
"showCodeHints": {
295+
"type": "Boolean",
296+
"description": "If false, all code hints are disabled"
297+
},
298+
"showCursorWhenSelecting": {
299+
"type": "Boolean",
300+
"description": "Keeps the blinking cursor visible when you have a text selection"
301+
},
302+
"showLineNumbers": {
303+
"type": "Boolean",
304+
"description": "Show line numbers in a “gutter” to the left of the code"
305+
},
306+
"smartIndent": {
307+
"type": "Boolean",
308+
"description": "False to turn off soft tabs behaviour"
309+
},
310+
"softTabs": {
311+
"type": "Boolean",
312+
"description": "False to turn off soft tabs behaviour"
313+
},
314+
"sortDirectoriesFirst": {
315+
"type": "Boolean",
316+
"description": "True to sort the directories first in the project tree"
317+
},
318+
"spaceUnits": {
319+
"type": "Number",
320+
"description": "Number of spaces to use for space-based indentation"
321+
},
322+
"staticserver.port": {
323+
"type": "Number",
324+
"description": "Port number that the built-in server should use for Live Preview"
325+
},
326+
"styleActiveLine": {
327+
"type": "Boolean",
328+
"description": "Highlight background color of the line the cursor is on"
329+
},
330+
"tabSize": {
331+
"type": "Number",
332+
"description": "Number of spaces to display for tabs"
333+
},
334+
"useTabChar": {
335+
"type": "Boolean",
336+
"description": "True to use tabs instead of spaces"
337+
},
338+
"uppercaseColors": {
339+
"type": "Boolean",
340+
"description": "Generate uppercase hex colors in Inline Color Editor"
341+
},
342+
"wordWrap": {
343+
"type": "Boolean",
344+
"description": "Wrap lines that exceed the viewport width"
345+
}
346+
}

0 commit comments

Comments
 (0)