mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
46 lines
No EOL
25 KiB
HTML
46 lines
No EOL
25 KiB
HTML
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IGlobalEditorOptions | Monaco Editor API</title><meta name="description" content="Documentation for Monaco Editor API"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Monaco Editor API</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">Monaco Editor API</a></li><li><a href="../modules/monaco.html">monaco</a></li><li><a href="../modules/monaco.editor.html">editor</a></li><li><a href="monaco.editor.IGlobalEditorOptions.html">IGlobalEditorOptions</a></li></ul><h1>Interface IGlobalEditorOptions</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Options which apply for all editors.</p>
|
|
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">IGlobalEditorOptions</span><ul class="tsd-hierarchy"><li><a href="monaco.editor.IStandaloneEditorConstructionOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">IStandaloneEditorConstructionOptions</a></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#autoDetectHighContrast" class="tsd-kind-icon">auto<wbr/>Detect<wbr/>High<wbr/>Contrast</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#detectIndentation" class="tsd-kind-icon">detect<wbr/>Indentation</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#insertSpaces" class="tsd-kind-icon">insert<wbr/>Spaces</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#largeFileOptimizations" class="tsd-kind-icon">large<wbr/>File<wbr/>Optimizations</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#maxTokenizationLineLength" class="tsd-kind-icon">max<wbr/>Tokenization<wbr/>Line<wbr/>Length</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#semanticHighlighting_enabled" class="tsd-kind-icon">semantic<wbr/>Highlighting.enabled</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#stablePeek" class="tsd-kind-icon">stable<wbr/>Peek</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#tabSize" class="tsd-kind-icon">tab<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#theme" class="tsd-kind-icon">theme</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#trimAutoWhitespace" class="tsd-kind-icon">trim<wbr/>Auto<wbr/>Whitespace</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#wordBasedSuggestions" class="tsd-kind-icon">word<wbr/>Based<wbr/>Suggestions</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#wordBasedSuggestionsOnlySameLanguage" class="tsd-kind-icon">word<wbr/>Based<wbr/>Suggestions<wbr/>Only<wbr/>Same<wbr/>Language</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="autoDetectHighContrast" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> auto<wbr/>Detect<wbr/>High<wbr/>Contrast<a href="#autoDetectHighContrast" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">auto<wbr/>Detect<wbr/>High<wbr/>Contrast<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1285">website/typedoc/monaco.d.ts:1285</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If enabled, will automatically change to high contrast theme if the OS is using a high contrast theme.
|
|
Defaults to true.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="detectIndentation" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> detect<wbr/>Indentation<a href="#detectIndentation" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">detect<wbr/>Indentation<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1235">website/typedoc/monaco.d.ts:1235</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Controls whether <code>tabSize</code> and <code>insertSpaces</code> will be automatically detected when a file is opened based on the file contents.
|
|
Defaults to true.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="insertSpaces" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> insert<wbr/>Spaces<a href="#insertSpaces" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">insert<wbr/>Spaces<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1230">website/typedoc/monaco.d.ts:1230</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Insert spaces when pressing <code>Tab</code>.
|
|
This setting is overridden based on the file contents when <code>detectIndentation</code> is on.
|
|
Defaults to true.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="largeFileOptimizations" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> large<wbr/>File<wbr/>Optimizations<a href="#largeFileOptimizations" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">large<wbr/>File<wbr/>Optimizations<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1245">website/typedoc/monaco.d.ts:1245</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Special handling for large files to disable certain memory intensive features.
|
|
Defaults to true.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="maxTokenizationLineLength" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> max<wbr/>Tokenization<wbr/>Line<wbr/>Length<a href="#maxTokenizationLineLength" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">max<wbr/>Tokenization<wbr/>Line<wbr/>Length<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1272">website/typedoc/monaco.d.ts:1272</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Lines above this length will not be tokenized for performance reasons.
|
|
Defaults to 20000.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="semanticHighlighting_enabled" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> semantic<wbr/>Highlighting.enabled<a href="#semanticHighlighting_enabled" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">semantic<wbr/>Highlighting.enabled<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"configuredByTheme"</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1262">website/typedoc/monaco.d.ts:1262</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>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'.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="stablePeek" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> stable<wbr/>Peek<a href="#stablePeek" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">stable<wbr/>Peek<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1267">website/typedoc/monaco.d.ts:1267</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Keep peek editors open even when double-clicking their content or when hitting <code>Escape</code>.
|
|
Defaults to false.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="tabSize" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> tab<wbr/>Size<a href="#tabSize" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">tab<wbr/>Size<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1224">website/typedoc/monaco.d.ts:1224</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The number of spaces a tab is equal to.
|
|
This setting is overridden based on the file contents when <code>detectIndentation</code> is on.
|
|
Defaults to 4.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="theme" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> theme<a href="#theme" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">theme<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1280">website/typedoc/monaco.d.ts:1280</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Theme to be used for rendering.
|
|
The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black', 'hc-light'.
|
|
You can create custom themes via <code>monaco.editor.defineTheme</code>.
|
|
To switch a theme, use <code>monaco.editor.setTheme</code>.
|
|
<strong>NOTE</strong>: The theme might be overwritten if the OS is in high contrast mode, unless <code>autoDetectHighContrast</code> is set to false.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="trimAutoWhitespace" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> trim<wbr/>Auto<wbr/>Whitespace<a href="#trimAutoWhitespace" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">trim<wbr/>Auto<wbr/>Whitespace<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1240">website/typedoc/monaco.d.ts:1240</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Remove trailing auto inserted whitespace.
|
|
Defaults to true.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="wordBasedSuggestions" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> word<wbr/>Based<wbr/>Suggestions<a href="#wordBasedSuggestions" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">word<wbr/>Based<wbr/>Suggestions<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1250">website/typedoc/monaco.d.ts:1250</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Controls whether completions should be computed based on words in the document.
|
|
Defaults to true.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="wordBasedSuggestionsOnlySameLanguage" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> word<wbr/>Based<wbr/>Suggestions<wbr/>Only<wbr/>Same<wbr/>Language<a href="#wordBasedSuggestionsOnlySameLanguage" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">word<wbr/>Based<wbr/>Suggestions<wbr/>Only<wbr/>Same<wbr/>Language<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L1254">website/typedoc/monaco.d.ts:1254</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Controls whether word based completions should be included from opened documents of the same language or any language.</p>
|
|
</div></div></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Exports</a></li><li class="current tsd-kind-namespace"><a href="../modules/monaco.html">monaco</a><ul><li class="current tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/monaco.editor.html">editor</a></li><li class=" tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/monaco.languages.html">languages</a></li><li class=" tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/monaco.worker.html">worker</a></li></ul></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface tsd-parent-kind-namespace"><a href="monaco.editor.IGlobalEditorOptions.html" class="tsd-kind-icon">IGlobal<wbr/>Editor<wbr/>Options</a><ul><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#autoDetectHighContrast" class="tsd-kind-icon">auto<wbr/>Detect<wbr/>High<wbr/>Contrast</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#detectIndentation" class="tsd-kind-icon">detect<wbr/>Indentation</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#insertSpaces" class="tsd-kind-icon">insert<wbr/>Spaces</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#largeFileOptimizations" class="tsd-kind-icon">large<wbr/>File<wbr/>Optimizations</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#maxTokenizationLineLength" class="tsd-kind-icon">max<wbr/>Tokenization<wbr/>Line<wbr/>Length</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#semanticHighlighting_enabled" class="tsd-kind-icon">semantic<wbr/>Highlighting.enabled</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#stablePeek" class="tsd-kind-icon">stable<wbr/>Peek</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#tabSize" class="tsd-kind-icon">tab<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#theme" class="tsd-kind-icon">theme</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#trimAutoWhitespace" class="tsd-kind-icon">trim<wbr/>Auto<wbr/>Whitespace</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#wordBasedSuggestions" class="tsd-kind-icon">word<wbr/>Based<wbr/>Suggestions</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="monaco.editor.IGlobalEditorOptions.html#wordBasedSuggestionsOnlySameLanguage" class="tsd-kind-icon">word<wbr/>Based<wbr/>Suggestions<wbr/>Only<wbr/>Same<wbr/>Language</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html> |