123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626 |
- /**
- * 编辑器配置文件
- * 修改后重启creator生效
- */
- module.exports = {
- /**
- * 点击场景Node不需要主动打开的脚本名,正则匹配名字规则
- * 例子:
- * ignoreAutoOpenFile : '.*Base' 将匹配 'sceneBase' || 'xxxxBase' 等文件忽略掉
- */
- ignoreAutoOpenFile : '',
-
- /**
- * 编辑器页面配置
- * 有些配置已经在设置面板实现,将会覆盖本配置文件字段
- */
- // /**
- // * The aria label for the editor's textarea (when it is focused).
- // */
- // ariaLabel?: string;
- // /**
- // * The `tabindex` property of the editor's textarea
- // */
- // tabIndex?: number;
- // /**
- // * Render vertical lines at the specified columns.
- // * Defaults to empty array.
- // */
- // rulers?: (number | IRulerOption)[];
- // /**
- // * A string containing the word separators used when doing word navigation.
- // * Defaults to `~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?
- // */
- // wordSeparators?: string;
- // /**
- // * Enable Linux primary clipboard.
- // * Defaults to true.
- // */
- // selectionClipboard?: boolean;
- // /**
- // * Control the rendering of line numbers.
- // * If it is a function, it will be invoked when rendering a line number and the return value will be rendered.
- // * Otherwise, if it is a truey, line numbers will be rendered normally (equivalent of using an identity function).
- // * Otherwise, line numbers will not be rendered.
- // * Defaults to `on`.
- // */
- // lineNumbers?: LineNumbersType;
- // /**
- // * Controls the minimal number of visible leading and trailing lines surrounding the cursor.
- // * Defaults to 0.
- // */
- // cursorSurroundingLines?: number;
- // /**
- // * Controls when `cursorSurroundingLines` should be enforced
- // * Defaults to `default`, `cursorSurroundingLines` is not enforced when cursor position is changed
- // * by mouse.
- // */
- // cursorSurroundingLinesStyle?: 'default' | 'all';
- // /**
- // * Render last line number when the file ends with a newline.
- // * Defaults to true.
- // */
- // renderFinalNewline?: boolean;
- // /**
- // * Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS).
- // * Defaults to 'prompt'.
- // */
- // unusualLineTerminators?: 'off' | 'prompt' | 'auto';
- // /**
- // * Should the corresponding line be selected when clicking on the line number?
- // * Defaults to true.
- // */
- // selectOnLineNumbers?: boolean;
- // /**
- // * Control the width of line numbers, by reserving horizontal space for rendering at least an amount of digits.
- // * Defaults to 5.
- // */
- // lineNumbersMinChars?: number;
- // /**
- // * Enable the rendering of the glyph margin.
- // * Defaults to true in vscode and to false in monaco-editor.
- // */
- // glyphMargin?: boolean;
- // /**
- // * The width reserved for line decorations (in px).
- // * Line decorations are placed between line numbers and the editor content.
- // * You can pass in a string in the format floating point followed by "ch". e.g. 1.3ch.
- // * Defaults to 10.
- // */
- // lineDecorationsWidth?: number | string;
- // /**
- // * When revealing the cursor, a virtual padding (px) is added to the cursor, turning it into a rectangle.
- // * This virtual padding ensures that the cursor gets revealed before hitting the edge of the viewport.
- // * Defaults to 30 (px).
- // */
- // revealHorizontalRightPadding?: number;
- // /**
- // * Render the editor selection with rounded borders.
- // * Defaults to true.
- // */
- // roundedSelection?: boolean;
- // /**
- // * Class name to be added to the editor.
- // */
- // extraEditorClassName?: string;
- // /**
- // * Should the editor be read only.
- // * Defaults to false.
- // */
- // readOnly?: boolean;
- // /**
- // * Rename matching regions on type.
- // * Defaults to false.
- // */
- // renameOnType?: boolean;
- // /**
- // * Should the editor render validation decorations.
- // * Defaults to editable.
- // */
- // renderValidationDecorations?: 'editable' | 'on' | 'off';
- // /**
- // * Control the behavior and rendering of the scrollbars.
- // */
- // scrollbar?: IEditorScrollbarOptions;
- // /**
- // * Control the behavior and rendering of the minimap.
- // */
- // minimap?: IEditorMinimapOptions;
- // /**
- // * Control the behavior of the find widget.
- // */
- // find?: IEditorFindOptions;
- // /**
- // * Display overflow widgets as `fixed`.
- // * Defaults to `false`.
- // */
- // fixedOverflowWidgets?: boolean;
- // /**
- // * The number of vertical lanes the overview ruler should render.
- // * Defaults to 3.
- // */
- // overviewRulerLanes?: number;
- // /**
- // * Controls if a border should be drawn around the overview ruler.
- // * Defaults to `true`.
- // */
- // overviewRulerBorder?: boolean;
- // /**
- // * Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'.
- // * Defaults to 'blink'.
- // */
- // cursorBlinking?: 'blink' | 'smooth' | 'phase' | 'expand' | 'solid';
- // /**
- // * Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl.
- // * Defaults to false.
- // */
- // mouseWheelZoom?: boolean;
- // /**
- // * Control the mouse pointer style, either 'text' or 'default' or 'copy'
- // * Defaults to 'text'
- // */
- // mouseStyle?: 'text' | 'default' | 'copy';
- // /**
- // * Enable smooth caret animation.
- // * Defaults to false.
- // */
- // cursorSmoothCaretAnimation?: boolean;
- // /**
- // * Control the cursor style, either 'block' or 'line'.
- // * Defaults to 'line'.
- // */
- // cursorStyle?: 'line' | 'block' | 'underline' | 'line-thin' | 'block-outline' | 'underline-thin';
- // /**
- // * Control the width of the cursor when cursorStyle is set to 'line'
- // */
- // cursorWidth?: number;
- // /**
- // * Enable font ligatures.
- // * Defaults to false.
- // */
- // fontLigatures?: boolean | string;
- // /**
- // * Disable the use of `transform: translate3d(0px, 0px, 0px)` for the editor margin and lines layers.
- // * The usage of `transform: translate3d(0px, 0px, 0px)` acts as a hint for browsers to create an extra layer.
- // * Defaults to false.
- // */
- // disableLayerHinting?: boolean;
- // /**
- // * Disable the optimizations for monospace fonts.
- // * Defaults to false.
- // */
- // disableMonospaceOptimizations?: boolean;
- // /**
- // * Should the cursor be hidden in the overview ruler.
- // * Defaults to false.
- // */
- // hideCursorInOverviewRuler?: boolean;
- // /**
- // * Enable that scrolling can go one screen size after the last line.
- // * Defaults to true.
- // */
- // scrollBeyondLastLine?: boolean;
- // /**
- // * Enable that scrolling can go beyond the last column by a number of columns.
- // * Defaults to 5.
- // */
- // scrollBeyondLastColumn?: number;
- // /**
- // * Enable that the editor animates scrolling to a position.
- // * Defaults to false.
- // */
- // smoothScrolling?: boolean;
- // /**
- // * Enable that the editor will install an interval to check if its container dom node size has changed.
- // * Enabling this might have a severe performance impact.
- // * Defaults to false.
- // */
- // automaticLayout?: boolean;
- // /**
- // * Control the wrapping of the editor.
- // * When `wordWrap` = "off", the lines will never wrap.
- // * When `wordWrap` = "on", the lines will wrap at the viewport width.
- // * When `wordWrap` = "wordWrapColumn", the lines will wrap at `wordWrapColumn`.
- // * When `wordWrap` = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
- // * Defaults to "off".
- // */
- // wordWrap?: 'off' | 'on' | 'wordWrapColumn' | 'bounded';
- // /**
- // * Control the wrapping of the editor.
- // * When `wordWrap` = "off", the lines will never wrap.
- // * When `wordWrap` = "on", the lines will wrap at the viewport width.
- // * When `wordWrap` = "wordWrapColumn", the lines will wrap at `wordWrapColumn`.
- // * When `wordWrap` = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
- // * Defaults to 80.
- // */
- // wordWrapColumn?: number;
- // /**
- // * Force word wrapping when the text appears to be of a minified/generated file.
- // * Defaults to true.
- // */
- // wordWrapMinified?: boolean;
- // /**
- // * Control indentation of wrapped lines. Can be: 'none', 'same', 'indent' or 'deepIndent'.
- // * Defaults to 'same' in vscode and to 'none' in monaco-editor.
- // */
- // wrappingIndent?: 'none' | 'same' | 'indent' | 'deepIndent';
- // /**
- // * Controls the wrapping strategy to use.
- // * Defaults to 'simple'.
- // */
- // wrappingStrategy?: 'simple' | 'advanced';
- // /**
- // * Configure word wrapping characters. A break will be introduced before these characters.
- // * Defaults to '([{‘“〈《「『【〔([{「£¥$£¥++'.
- // */
- // wordWrapBreakBeforeCharacters?: string;
- // /**
- // * Configure word wrapping characters. A break will be introduced after these characters.
- // * Defaults to ' \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」'.
- // */
- // wordWrapBreakAfterCharacters?: string;
- // /**
- // * Performance guard: Stop rendering a line after x characters.
- // * Defaults to 10000.
- // * Use -1 to never stop rendering
- // */
- // stopRenderingLineAfter?: number;
- // /**
- // * Configure the editor's hover.
- // */
- // hover?: IEditorHoverOptions;
- // /**
- // * Enable detecting links and making them clickable.
- // * Defaults to true.
- // */
- // links?: boolean;
- // /**
- // * Enable inline color decorators and color picker rendering.
- // */
- // colorDecorators?: boolean;
- // /**
- // * Control the behaviour of comments in the editor.
- // */
- // comments?: IEditorCommentsOptions;
- // /**
- // * Enable custom contextmenu.
- // * Defaults to true.
- // */
- // contextmenu?: boolean;
- // /**
- // * A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.
- // * Defaults to 1.
- // */
- // mouseWheelScrollSensitivity?: number;
- // /**
- // * FastScrolling mulitplier speed when pressing `Alt`
- // * Defaults to 5.
- // */
- // fastScrollSensitivity?: number;
- // /**
- // * Enable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling vertically on a trackpad.
- // * Defaults to true.
- // */
- // scrollPredominantAxis?: boolean;
- // /**
- // * Enable that the selection with the mouse and keys is doing column selection.
- // * Defaults to false.
- // */
- // columnSelection?: boolean;
- // /**
- // * The modifier to be used to add multiple cursors with the mouse.
- // * Defaults to 'alt'
- // */
- // multiCursorModifier?: 'ctrlCmd' | 'alt';
- // /**
- // * Merge overlapping selections.
- // * Defaults to true
- // */
- // multiCursorMergeOverlapping?: boolean;
- // /**
- // * Configure the behaviour when pasting a text with the line count equal to the cursor count.
- // * Defaults to 'spread'.
- // */
- // multiCursorPaste?: 'spread' | 'full';
- // /**
- // * Configure the editor's accessibility support.
- // * Defaults to 'auto'. It is best to leave this to 'auto'.
- // */
- // accessibilitySupport?: 'auto' | 'off' | 'on';
- // /**
- // * Controls the number of lines in the editor that can be read out by a screen reader
- // */
- // accessibilityPageSize?: number;
- // /**
- // * Suggest options.
- // */
- // suggest?: ISuggestOptions;
- // /**
- // *
- // */
- // gotoLocation?: IGotoLocationOptions;
- // /**
- // * Enable quick suggestions (shadow suggestions)
- // * Defaults to true.
- // */
- // quickSuggestions?: boolean | IQuickSuggestionsOptions;
- // /**
- // * Quick suggestions show delay (in ms)
- // * Defaults to 10 (ms)
- // */
- // quickSuggestionsDelay?: number;
- // /**
- // * Controls the spacing around the editor.
- // */
- // padding?: IEditorPaddingOptions;
- // /**
- // * Parameter hint options.
- // */
- // parameterHints?: IEditorParameterHintOptions;
- // /**
- // * Options for auto closing brackets.
- // * Defaults to language defined behavior.
- // */
- // autoClosingBrackets?: EditorAutoClosingStrategy;
- // /**
- // * Options for auto closing quotes.
- // * Defaults to language defined behavior.
- // */
- // autoClosingQuotes?: EditorAutoClosingStrategy;
- // /**
- // * Options for typing over closing quotes or brackets.
- // */
- // autoClosingOvertype?: EditorAutoClosingOvertypeStrategy;
- // /**
- // * Options for auto surrounding.
- // * Defaults to always allowing auto surrounding.
- // */
- // autoSurround?: EditorAutoSurroundStrategy;
- // /**
- // * Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.
- // * Defaults to advanced.
- // */
- // autoIndent?: 'none' | 'keep' | 'brackets' | 'advanced' | 'full';
- // /**
- // * Enable format on type.
- // * Defaults to false.
- // */
- // formatOnType?: boolean;
- // /**
- // * Enable format on paste.
- // * Defaults to false.
- // */
- // formatOnPaste?: boolean;
- // /**
- // * Controls if the editor should allow to move selections via drag and drop.
- // * Defaults to false.
- // */
- // dragAndDrop?: boolean;
- // /**
- // * Enable the suggestion box to pop-up on trigger characters.
- // * Defaults to true.
- // */
- // suggestOnTriggerCharacters?: boolean;
- // /**
- // * Accept suggestions on ENTER.
- // * Defaults to 'on'.
- // */
- // acceptSuggestionOnEnter?: 'on' | 'smart' | 'off';
- // /**
- // * Accept suggestions on provider defined characters.
- // * Defaults to true.
- // */
- // acceptSuggestionOnCommitCharacter?: boolean;
- // /**
- // * Enable snippet suggestions. Default to 'true'.
- // */
- // snippetSuggestions?: 'top' | 'bottom' | 'inline' | 'none';
- // /**
- // * Copying without a selection copies the current line.
- // */
- // emptySelectionClipboard?: boolean;
- // /**
- // * Syntax highlighting is copied.
- // */
- // copyWithSyntaxHighlighting?: boolean;
- // /**
- // * The history mode for suggestions.
- // */
- // suggestSelection?: 'first' | 'recentlyUsed' | 'recentlyUsedByPrefix';
- // /**
- // * The font size for the suggest widget.
- // * Defaults to the editor font size.
- // */
- // suggestFontSize?: number;
- // /**
- // * The line height for the suggest widget.
- // * Defaults to the editor line height.
- // */
- // suggestLineHeight?: number;
- // /**
- // * Enable tab completion.
- // */
- // tabCompletion?: 'on' | 'off' | 'onlySnippets';
- // /**
- // * Enable selection highlight.
- // * Defaults to true.
- // */
- // selectionHighlight?: boolean;
- // /**
- // * Enable semantic occurrences highlight.
- // * Defaults to true.
- // */
- // occurrencesHighlight?: boolean;
- // /**
- // * Show code lens
- // * Defaults to true.
- // */
- // codeLens?: boolean;
- // /**
- // * Control the behavior and rendering of the code action lightbulb.
- // */
- // lightbulb?: IEditorLightbulbOptions;
- // /**
- // * Timeout for running code actions on save.
- // */
- // codeActionsOnSaveTimeout?: number;
- // /**
- // * Enable code folding.
- // * Defaults to true.
- // */
- // folding?: boolean;
- // /**
- // * Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy.
- // * Defaults to 'auto'.
- // */
- // foldingStrategy?: 'auto' | 'indentation';
- // /**
- // * Enable highlight for folded regions.
- // * Defaults to true.
- // */
- // foldingHighlight?: boolean;
- // /**
- // * Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter.
- // * Defaults to 'mouseover'.
- // */
- // showFoldingControls?: 'always' | 'mouseover';
- // /**
- // * Controls whether clicking on the empty content after a folded line will unfold the line.
- // * Defaults to false.
- // */
- // unfoldOnClickAfterEndOfLine?: boolean;
- // /**
- // * Enable highlighting of matching brackets.
- // * Defaults to 'always'.
- // */
- // matchBrackets?: 'never' | 'near' | 'always';
- // /**
- // * Enable rendering of whitespace.
- // * Defaults to none.
- // */
- // renderWhitespace?: 'none' | 'boundary' | 'selection' | 'trailing' | 'all';
- // /**
- // * Enable rendering of control characters.
- // * Defaults to false.
- // */
- // renderControlCharacters?: boolean;
- // /**
- // * Enable rendering of indent guides.
- // * Defaults to true.
- // */
- // renderIndentGuides?: boolean;
- // /**
- // * Enable highlighting of the active indent guide.
- // * Defaults to true.
- // */
- // highlightActiveIndentGuide?: boolean;
- // /**
- // * Enable rendering of current line highlight.
- // * Defaults to all.
- // */
- // renderLineHighlight?: 'none' | 'gutter' | 'line' | 'all';
- // /**
- // * Control if the current line highlight should be rendered only the editor is focused.
- // * Defaults to false.
- // */
- // renderLineHighlightOnlyWhenFocus?: boolean;
- // /**
- // * Inserting and deleting whitespace follows tab stops.
- // */
- // useTabStops?: boolean;
- // /**
- // * The font family
- // */
- // fontFamily?: string;
- // /**
- // * The font weight
- // */
- // fontWeight?: string;
- // /**
- // * The font size
- // */
- // fontSize?: number;
- // /**
- // * The line height
- // */
- // lineHeight?: number;
- // /**
- // * The letter spacing
- // */
- // letterSpacing?: number;
- // /**
- // * Controls fading out of unused variables.
- // */
- // showUnused?: boolean;
- // /**
- // * Controls whether to focus the inline editor in the peek widget by default.
- // * Defaults to false.
- // */
- // peekWidgetDefaultFocus?: 'tree' | 'editor';
- // /**
- // * Controls whether the definition link opens element in the peek widget.
- // * Defaults to false.
- // */
- // definitionLinkOpensInPeek?: boolean;
- // /**
- // * Controls strikethrough deprecated variables.
- // */
- // showDeprecated?: boolean;
- /**
- * The number of spaces a tab is equal to.
- * This setting is overridden based on the file contents when `detectIndentation` is on.
- * Defaults to 4.
- */
- // tabSize?: number;
- /**
- * Insert spaces when pressing `Tab`.
- * This setting is overridden based on the file contents when `detectIndentation` is on.
- * Defaults to true.
- */
- // insertSpaces?: boolean;
- /**
- * Controls whether `tabSize` and `insertSpaces` will be automatically detected when a file is opened based on the file contents.
- * Defaults to true.
- */
- // detectIndentation?: boolean;
- /**
- * Remove trailing auto inserted whitespace.
- * Defaults to true.
- */
- // trimAutoWhitespace?: boolean;
- /**
- * Special handling for large files to disable certain memory intensive features.
- * Defaults to true.
- */
- // largeFileOptimizations?: boolean;
- /**
- * Controls whether completions should be computed based on words in the document.
- * Defaults to true.
- */
- // wordBasedSuggestions?: boolean;
- /**
- * Controls whether the semanticHighlighting is shown for the languages that support it.
- * true: semanticHighlighting is enabled for all themes
- * false: semanticHighlighting is disabled for all themes
- * 'configuredByTheme': semanticHighlighting is controlled by the current color theme's semanticHighlighting setting.
- * Defaults to 'byTheme'.
- */
- // 'semanticHighlighting.enabled'?: true | false | 'configuredByTheme';
- /**
- * Keep peek editors open even when double clicking their content or when hitting `Escape`.
- * Defaults to false.
- */
- // stablePeek?: boolean;
- /**
- * Lines above this length will not be tokenized for performance reasons.
- * Defaults to 20000.
- */
- // maxTokenizationLineLength?: number;
- }
|