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

Commit

Permalink
Add code hints for preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
sprintr committed May 18, 2015
1 parent 76838a4 commit ac8d58e
Show file tree
Hide file tree
Showing 8 changed files with 1,842 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/brackets.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ define(function (require, exports, module) {
require("view/ThemeManager");
require("thirdparty/lodash");
require("language/XMLUtils");
require("language/JSONUtils");

// DEPRECATED: In future we want to remove the global CodeMirror, but for now we
// expose our required CodeMirror globally so as to avoid breaking extensions in the
Expand Down
346 changes: 346 additions & 0 deletions src/extensions/default/PrefsCodeHints/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,346 @@
{
"closeBrackets": {
"type": "Boolean",
"description": "Automatically close braces, brackets and parentheses"
},
"closeOthers.above": {
"type": "Boolean",
"description": "False to remove the Close Others Above from the Working Files context menu"
},
"closeOthers.below": {
"type": "Boolean",
"description": "False to remove the Close Others Below from the Working Files context menu"
},
"closeOthers.others": {
"type": "Boolean",
"description": "False to remove the Close Others from the Working Files context menu"
},
"closeTags": {
"type": "Object",
"description": "Sets the tag closing options",
"keys": {
"dontCloseTags": {
"type": "Array",
"description": "An array of tags that should not be auto-closed"
},
"whenOpening": {
"type": "Boolean",
"description": "Close with > of opening tag is typed"
},
"whenClosing": {
"type": "Boolean",
"description": "Close when / of closing tag is typed"
},
"indentTags": {
"type": "Array",
"description": "An array of tags that when opened has a blank line"
}
}
},
"code-folding.alwaysUseIndentFold": {
"type": "Boolean",
"description": "Always generate collapsible section markers when indent level changes"
},
"code-folding.enabled": {
"type": "Boolean",
"description": "True to show collapsible section indicators in the gutter"
},
"code-folding.hideUntilMouseover": {
"type": "Boolean",
"description": "Section-collapsing markers are only visible when you move the mouse over the gutter"
},
"code-folding.maxFoldLevel": {
"type": "Number",
"description": "Limits how many levels deep Collapse All applies"
},
"code-folding.minFoldSize": {
"type": "Number",
"description": "Minimum lines before a collapsible section icon appears"
},
"code-folding.saveFoldStates": {
"type": "Boolean",
"description": "Remember collapsed sections if you close and reopen a file or project"
},
"codehint.AttrHints": {
"type": "Boolean",
"description": "Enable/disable HTML attribute hints"
},
"codehint.CssPropHints": {
"type": "Boolean",
"description": "Enable/disable CSS/LESS/SCSS property hints"
},
"codehint.JSHints": {
"type": "Boolean",
"description": "Enable/disable JavaScript code hints"
},
"codehint.PrefHints": {
"type": "Boolean",
"description": "Enable/disable Prefrences code hints"
},
"codehint.SpecialCharHints": {
"type": "Boolean",
"description": "Enable/disable HTML entity hints"
},
"codehint.SVGHints": {
"type": "Boolean",
"description": "Enable/disable SVG code hints"
},
"codehint.TagHints": {
"type": "Boolean",
"description": "Enable/disable HTML tag hints"
},
"codehint.UrlCodeHints": {
"type": "Boolean",
"description": "Enable/disable URL hints in HTML & CSS/LESS/SCSS"
},
"dragDropText": {
"type": "Boolean",
"description": "Enable/disable Drag & Drop functionality"
},
"healthData.healthDataTracking": {
"type": "Boolean",
"description": "Enable the Health Data Tracking"
},
"highlightMatches": {
"type": "Boolean",
"description": "Enables automatic highlighting of matching strings throughout the document",
"keys": {
"showToken": {
"type": "Boolean",
"description": "highlight all strings that match the token the cursor is currently in (no selection needed"
},
"wordsOnly": {
"type": "Boolean",
"description": "highlight only when selection is a complete token"
}
}
},
"insertHintOnTab": {
"type": "Boolean",
"description": "True to insert the currently selected code hint on tab"
},
"jscodehints.noHintsOnDot": {
"type": "Boolean",
"description": "If true, do not automatically show JS code hints when . is typed"
},
"jslint.options": {
"type": "Object",
"description": "An object with the default options for JSLint",
"keys": {
"ass": {
"type": "Boolean",
"description": "True if assignment expressions should be allowed"
},
"bitwise": {
"type": "Boolean",
"description": "True if bitwise operators should be allowed"
},
"browser": {
"type": "Boolean",
"description": "True if standard browser globals should be predefined"
},
"closure": {
"type": "Boolean",
"description": "True if Google Closure idioms should be allowed"
},
"continue": {
"type": "Boolean",
"description": "True if continue should be allowed"
},
"couch": {
"type": "Boolean",
"description": "True if CouchDB globals should be predefined"
},
"debug": {
"type": "Boolean",
"description": "True if debugger statements should be allowed"
},
"devel": {
"type": "Boolean",
"description": "True if browser globals useful in development should be predefined"
},
"eqeq": {
"type": "Boolean",
"description": "True if == and != should be allowed"
},
"es6": {
"type": "Boolean",
"description": "True if ES6 globals should be predefined"
},
"evil": {
"type": "Boolean",
"description": "True if eval should be allowed"
},
"forin": {
"type": "Boolean",
"description": "True if unfiltered for in should be allowd"
},
"indent": {
"type": "Number",
"description": "Set a specific tab width"
},
"maxerr": {
"type": "Number",
"description": "The maximum number of warnings reported"
},
"maxlen": {
"type": "Number",
"description": "The maximum number of characters in a line"
},
"newcap": {
"type": "Boolean",
"description": "True to allow uncapitalized constructors"
},
"node": {
"type": "Boolean",
"description": "True if Node.js globals should be predefined"
},
"nomen": {
"type": "Boolean",
"description": "Allow dangling underscore in identifiers"
},
"passfail": {
"type": "Boolean",
"description": "True to stop on first error"
},
"plusplus": {
"type": "Boolean",
"description": "True to allows ++ and --"
},
"regexp": {
"type": "Boolean",
"description": "Allow . and [^...]. in RegExp"
},
"rhino": {
"type": "Boolean",
"description": "True if Rhino globals should be predefined"
},
"sloppy": {
"type": "Boolean",
"description": "True to allow missing `use strict` pragma"
},
"stupid": {
"type": "Boolean",
"description": "True to allow stupidity"
},
"sub": {
"type": "Boolean",
"description": "True to allow inefficient subscripting"
},
"todo": {
"type": "Boolean",
"description": "True to allow TODO comments"
},
"unparam": {
"type": "Boolean",
"description": "True to allow unused parameters"
},
"vars": {
"type": "Boolean",
"description": "True to allow more than 1 vars in a function"
},
"white": {
"type": "Boolean",
"description": "True if the whitespace rules should be ignored"
}
}
},
"language": {
"type": "Object",
"description": "Language specific settings"
},
"language.fileExtensions": {
"type": "Object",
"description": "Additional mappings from file extension to language name"
},
"language.fileNames": {
"type": "Object",
"description": "Additional mappings from file name to language name"
},
"linting.enabled": {
"type": "Boolean",
"description": "Determines if Code Inspection is on"
},
"linting.prefer": {
"type": "Array",
"description": "Array of linters to run first",
"values": ["JSLint", "JSHint"],
"valueType": "String"
},
"livedev.multibrowser": {
"type": "Boolean",
"description": "True to enable experimental Live Preview"
},
"linting.usePreferredOnly": {
"type": "Boolean",
"description": "If set to true, then only providers specified in linting.prefer will be run"
},
"maxCodeHints": {
"type": "Number",
"description": "Maximum code hints displayed at once"
},
"path": {
"type": "Object",
"description": "Path specific settings"
},
"proxy": {
"type": "String",
"description": "The URL of the proxy server used for extension installation"
},
"scrollPastEnd": {
"type": "Boolean",
"description": "True to be able to scroll beyond the end of the document"
},
"showCodeHints": {
"type": "Boolean",
"description": "If false, all code hints are disabled"
},
"showCursorWhenSelecting": {
"type": "Boolean",
"description": "Keeps the blinking cursor visible when you have a text selection"
},
"showLineNumbers": {
"type": "Boolean",
"description": "Show line numbers in a “gutter” to the left of the code"
},
"smartIndent": {
"type": "Boolean",
"description": "False to turn off soft tabs behaviour"
},
"softTabs": {
"type": "Boolean",
"description": "False to turn off soft tabs behaviour"
},
"sortDirectoriesFirst": {
"type": "Boolean",
"description": "True to sort the directories first in the project tree"
},
"spaceUnits": {
"type": "Number",
"description": "Number of spaces to use for space-based indentation"
},
"staticserver.port": {
"type": "Number",
"description": "Port number that the built-in server should use for Live Preview"
},
"styleActiveLine": {
"type": "Boolean",
"description": "Highlight background color of the line the cursor is on"
},
"tabSize": {
"type": "Number",
"description": "Number of spaces to display for tabs"
},
"useTabChar": {
"type": "Boolean",
"description": "True to use tabs instead of spaces"
},
"uppercaseColors": {
"type": "Boolean",
"description": "Generate uppercase hex colors in Inline Color Editor"
},
"wordWrap": {
"type": "Boolean",
"description": "Wrap lines that exceed the viewport width"
}
}
Loading

0 comments on commit ac8d58e

Please sign in to comment.