forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
111 lines
35 KiB
HTML
111 lines
35 KiB
HTML
<a name="EN-US_TOPIC_0000001145913107"></a><a name="EN-US_TOPIC_0000001145913107"></a>
|
|
|
|
<h1 class="topictitle1">Editor</h1>
|
|
<div id="body1584526252531"><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p269015534415">This section describes how to customize syntax highlighting, SQL history information, templates, and formatters.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section6791101652013"><a name="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section6791101652013"></a><a name="en-us_topic_0185264581_section6791101652013"></a><h4 class="sectiontitle">Syntax Highlighting</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p25633677">Perform the following steps to customize SQL highlighting:</p>
|
|
</div>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol29376504"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li63061947"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b1580614556">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__b1818143516">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p8294256">The <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b68531255193119">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__li1552001193415"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b79371520165">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b26311024862">Syntax Coloring</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__p45492418359">The <strong id="EN-US_TOPIC_0000001145913107__b28261519133513">Syntax Coloring</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li60434506"><span>Click the color button to customize the color for a syntax type.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p63356812">For example, click <span><img id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_image33340398" width="34.9125" src="figure/en-us_image_0000001098993230.jpg" height="18.9525" title="Click to enlarge" class="imgResize"></span> to customize the color for <strong id="EN-US_TOPIC_0000001145913107__b742794010352">Strings</strong>. A dialog box is displayed prompting you to select a color.</p>
|
|
<p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p38569870">Select a color for a specific syntax type. You can select one of the basic colors or customize a color.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note11584517"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p class="text" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p37151789">Click <strong id="EN-US_TOPIC_0000001145913107__b425115317362">Restore Defaults</strong> in the <strong id="EN-US_TOPIC_0000001145913107__b1925114323610">Syntax Coloring</strong> pane to restore the default color.</p>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li56504928"><span>Click <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b9408737391">OK</strong>. The <strong id="EN-US_TOPIC_0000001145913107__b1144821510360">Restart Data Studio</strong> dialog box is displayed.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li41028295"><span>Click <strong id="EN-US_TOPIC_0000001145913107__b847193512397">Yes</strong> to restart Data Studio. If any export, import or execution operations are in progress, the <strong id="EN-US_TOPIC_0000001145913107__b1335914342094">Process is running</strong> dialog box is displayed.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li49840843"><span>Click <strong id="EN-US_TOPIC_0000001145913107__b129518306117">OK</strong> to wait till the operations are complete or click <strong id="EN-US_TOPIC_0000001145913107__b12951103012118">Force Restart</strong> to cancel the operations.</span><p><div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note28079762"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p class="text" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p51391268">The <strong id="EN-US_TOPIC_0000001145913107__b175683716129">Preferences.prefs</strong> file contains the custom color settings. If the file is damaged, Data Studio will display the default settings.</p>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p11533518402">The customized color will be used after you restart Data Studio.</p>
|
|
</p></li></ol>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section1382623812471"><a name="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section1382623812471"></a><a name="en-us_topic_0185264581_section1382623812471"></a><h4 class="sectiontitle">SQL History</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p156551471720">You can set the value of <strong id="EN-US_TOPIC_0000001145913107__b15451172534716">SQL History Count</strong> and also the number of characters saved for each query in <strong id="EN-US_TOPIC_0000001145913107__b1228114316484">SQL History</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1369943810195">Perform the following steps to set the value of <strong id="EN-US_TOPIC_0000001145913107__b179121248145314">SQL History Count</strong> and also the number of characters saved for each query in <strong id="EN-US_TOPIC_0000001145913107__b15913648115312">SQL History</strong>:</p>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol1696363894718"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li796323810472"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b1528172641315">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__b143302651320">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p12963163818471">The <strong id="EN-US_TOPIC_0000001145913107__b19500112412514">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li8963438184712"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b189389498172">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b67421452201710">SQL History</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p66554381645">The <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b2853455123112">SQL History</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li79631838194714"><span>Set the number of queries to be saved in the <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b69162020133713">SQL History Count</strong> field.</span><p><div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note283263844714"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1696313813478">The value ranges from 1 to 1000. The current value of this field will be displayed.</p>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li996333824714"><span>Set the value of <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b2068961073810">SQL Query Characters</strong> to the maximum number of characters allowed in each query that is saved in <strong id="EN-US_TOPIC_0000001145913107__b755620105712">SQL History</strong>.</span><p><div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note11833173814716"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p18964173810472">The value ranges from 1 to 1000. You can enter <strong id="EN-US_TOPIC_0000001145913107__b15858120162017">0</strong> to remove the character limit. The current value of this field will be displayed.</p>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li512719365151"><span>Click <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b452412311013">Apply</strong>.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li1696414380472"><span>Click <strong id="EN-US_TOPIC_0000001145913107__b1269417287">OK</strong>.</span><p><div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note16833638184711"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ul18964173864712"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li14591357123412">Click <strong id="EN-US_TOPIC_0000001145913107__b680543312219">Restore Defaults</strong> in the <strong id="EN-US_TOPIC_0000001145913107__b18805153362116">Syntax Coloring</strong> pane to restore the default value.</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li2052175993413"><strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b201191013124510">SQL History Count</strong> defaults to 50 and <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b1511941316455">SQL Query Characters</strong> defaults to 1000.</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li10211113519">If the input value is less than the original one, data may be lost. In this case, a message is displayed to notify you of the data loss risk and ask you whether to proceed.</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li44650243512">If you move away from this pane without saving the changes, a message is displayed to notify you of the unsaved changes.</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li62051343352">The number of pinned queries is not affected by the changed value of the <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b073113561327">SQL History Count</strong> field. For example, if the number of pinned queries is 50 and <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b035295717310">SQL History Count</strong> is set to 25, 50 pinned queries will be displayed in <strong id="EN-US_TOPIC_0000001145913107__b11320111103116">SQL History</strong>.</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li0964193817477">If the value of <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b123913511557">SQL Query Characters</strong> is changed, the new value applies only to queries added after the change.</li></ul>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section116501350276"><a name="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section116501350276"></a><a name="en-us_topic_0185264581_section116501350276"></a><h4 class="sectiontitle">Adding a Template</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p6467171002317">Data Studio allows you to create, edit, and remove a template. For details about templates, see <a href="DWS_DS_128.html#EN-US_TOPIC_0000001145833051__en-us_topic_0185264856_section2303144411114">Using Templates</a>.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note1763311620189"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p11634264182">If the default settings are restored, all user-defined templates will be removed from the list.</p>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p84681310162310">Perform the following steps to create a template:</p>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol1365411511510"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li9504112592416"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b810514561102">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__b201111564105">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1850642592410">The <strong id="EN-US_TOPIC_0000001145913107__b550717240510">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li16508625122413"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b51788133101">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b13386915141012">Templates</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1229319525410">The <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b1710911107107">Templates</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li094108102512"><span>Click <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b7624436181610">New</strong>.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li18654184286"><span>Enter a template name in the <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b53114393186">Name</strong> field.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li9855614122816"><span>Enter description in the <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b1975015511814">Description</strong> field.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li152941012182811"><span>Enter a SQL statement pattern in the <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b10960857132018">Pattern</strong> field.</span><p><div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note19857817152015"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p117578557434">The syntax of the text entered in <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b725671421616">Pattern</strong> will be highlighted.</p>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li5959121812110"><span>Click <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b298212294211">OK</strong>.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section275211201148"><h4 class="sectiontitle">Editing a Template</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p418961669">Perform the following steps to edit a template:</p>
|
|
</div>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol208390202046"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li5838192019417"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b1251524110115">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b3515184114117">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p10838720744">The <strong id="EN-US_TOPIC_0000001145913107__b125132024851">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li16838202010411"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b993617211515">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b199361229150">Templates</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p821915313518">The <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b65151241217">Templates</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li108382201548"><span>Click <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b14515104117115">Edit</strong>.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li483812201140"><span>Edit the name in the <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b351514116110">Name</strong> field as required.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li168399201416"><span>Edit the description in the <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b1951534114111">Description</strong> field as required.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li1683919201942"><span>Edit the SQL statement pattern in the <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b851620411015">Pattern</strong> field as required.</span><p><div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note1583917201344"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p11840148102218">The syntax of the text entered in <strong id="EN-US_TOPIC_0000001145913107__b162214713168">Pattern</strong> will be highlighted.</p>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li2083916201742"><span>Click <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b10516241010">OK</strong>.</span></li></ol>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section959595720418"><h4 class="sectiontitle">Removing a Template</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p193865141364">Perform the following steps to remove a template:</p>
|
|
</div>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol284019201944"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li17840112016413"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b99864105177">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__b16992121019176">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1684010201040">The <strong id="EN-US_TOPIC_0000001145913107__b35209244514">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li18409203420"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b18480160162113">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b163811358192016">Templates</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p22632153519">The <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b14516194114110">Templates</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li19840122011410"><span>Select the template to be removed, and click <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b165174411210">Remove</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p15840122015419">The template is removed from the <strong id="EN-US_TOPIC_0000001145913107__b1524711256188">Templates</strong> pane.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note14337173910136"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p19337113961314">Default templates that are removed can be added back using the <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b1914572161718">Restore Removed</strong> option. It will restore the template to the last updated version. However, the <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b199341614111712">Restore Removed</strong> option is not applicable to user-defined templates.</p>
|
|
</div></div>
|
|
</p></li></ol>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section1874919154327"><h4 class="sectiontitle">Restoring the Default Template Settings</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p15624123963314">Perform the following steps to restore the default template settings:</p>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol373183133519"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li12734852183610"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b106461554101813">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__b56526547187">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1882611533362">The <strong id="EN-US_TOPIC_0000001145913107__b2526102419514">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li11461194820365"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b21444110214">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b13144181119215">Templates</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1506935153113">The <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b764912521819">Templates</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li6216592361"><span>Select at least one default template that has been modified and restore the default template settings.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li63081356373"><span>Click <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b166511625131816">Revert to Default</strong>.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section64411944205615"><a name="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section64411944205615"></a><a name="en-us_topic_0185264581_section64411944205615"></a><h4 class="sectiontitle">Formatter</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1265041225715">Data Studio allows you to set the tab width and convert tabs to spaces during indent and unindent operations. For details, see <a href="DWS_DS_128.html#EN-US_TOPIC_0000001145833051__en-us_topic_0185264856_section2611012152811">Indenting or Un-indenting Lines</a>.</p>
|
|
<p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p14319172415593">Perform the following steps to customize the indent size and convert tabs to spaces:</p>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol14721544165610"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li1947218446567"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b19752154010257">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__b16757164042515">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1347294418564">The <strong id="EN-US_TOPIC_0000001145913107__b1453232415514">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li3472844185615"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b132016531257">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b41871256162520">Formatter</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p178914271154">The <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b11133639164413">Formatter</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li123341533500"><span>Select <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b105101038102312">Insert Space</strong> to convert tabs to spaces, or <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b94601246162418">Insert Tab</strong> to add or remove tabs when indenting or unindenting lines.</span></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li1047220441564"><span>Enter the indent size in <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b11579112212616">Indent Size</strong> to define the indent/unindent/space length.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section210212814444"><a name="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section210212814444"></a><a name="en-us_topic_0185264581_section210212814444"></a><h4 class="sectiontitle">Transaction</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p583418081015">Perform the following steps to edit settings in <strong id="EN-US_TOPIC_0000001145913107__b58671830183217">Transaction</strong>:</p>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol115145429443"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li19431447111015"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b44803517302">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__b94875553014">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p643164712108">The <strong id="EN-US_TOPIC_0000001145913107__b153992410513">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li749544181119"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b12153182616301">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b13989152817302">Transaction</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p04951341201117">The <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b2495184110111">Transaction</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li022713431714"><span>In the <strong id="EN-US_TOPIC_0000001145913107__b132101014277">Auto Commit</strong> window, you can perform the following operations:</span><p><ul id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ul1364744016174"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li26471940181714">Select <strong id="EN-US_TOPIC_0000001145913107__b8317181517426">Enable</strong> to enable the Auto Commit feature. In this case, transactions are automatically committed and cannot be manually committed or rolled back.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p4325649104014"><span><img id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_image1779495194016" src="figure/en-us_image_0000001145513229.png"></span></p>
|
|
<ul id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ul20320184651710"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li103201466176">Select <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b9408174810406">Disable</strong> to disable the Auto Commit feature. In this case, transactions can be manually committed or rolled back.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p09371459164016"><span><img id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_image65721955419" width="366.08250000000004" src="figure/en-us_image_0000001145833083.png" height="112.39138400000002" title="Click to enlarge" class="imgResize"></span></p>
|
|
<div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note184081348204017"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p34081148164014"><strong id="EN-US_TOPIC_0000001145913107__b26741819359">Auto Commit</strong> defaults to <strong id="EN-US_TOPIC_0000001145913107__b480518361369">Enable</strong>.</p>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section6422152693619"><h4 class="sectiontitle">Folding a SQL Statement</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1942171019394">Perform the following steps to fold a SQL statement:</p>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol39111914134719"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li16397193993719"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b76602500348">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__b16611450183416">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p1139717391372">The <strong id="EN-US_TOPIC_0000001145913107__b554513241356">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li51104543378"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b14107632502">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b2608185175017">Folding</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p4111195412373">The <strong id="EN-US_TOPIC_0000001145913107__b25291417195018">Folding</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li1481416201401"><span>Select <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b154321309507">Enable</strong> or <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b1682020215505">Disable</strong>. By default, <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b22872519504">Enable</strong> is selected.</span><p><ul id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ul13814320184020"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li18516510400"><strong id="EN-US_TOPIC_0000001145913107__b8250115418620">Enable</strong>: indicates that the SQL folding feature is enabled Supported SQL statements can be folded or unfolded.</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li57628101411"><strong id="EN-US_TOPIC_0000001145913107__b14139115811615">Disable</strong>: indicates that the SQL folding feature is disabled<div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note376113103416"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p113312397412">Any change in the <strong id="EN-US_TOPIC_0000001145913107__b1080105715377">Folding</strong> parameter takes effect only in new editors, and will not take effect in opened editors until they are restarted.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section0424142673618"><h4 class="sectiontitle">Font</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p523335105413">Perform the following steps to configure <strong id="EN-US_TOPIC_0000001145913107__b54431248181215">Font</strong>:</p>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol12233155155417"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li165041341103819"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b1223314545415">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b16234175105415">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p16504194113814">The <strong id="EN-US_TOPIC_0000001145913107__b955116241354">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li95042411381"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b155231659181214">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b68491313139">Font</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p45041041133816">The <strong id="EN-US_TOPIC_0000001145913107__b1484937111315">Font</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li13346173012447"><span>Configure the font size, which ranges from 1 to 50 and defaults to 10.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_section996203916449"><h4 class="sectiontitle">Auto Suggest</h4><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p185055713246">Perform the following steps to configure <strong id="EN-US_TOPIC_0000001145913107__b17420101161411">Auto Suggest</strong>:</p>
|
|
<ol id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol10759144220442"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li112151029102414"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b71821522181411">Settings</strong> > <strong id="EN-US_TOPIC_0000001145913107__b9183122161418">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p141421136102412">The <strong id="EN-US_TOPIC_0000001145913107__b65576248516">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li1757804820244"><span>Choose <strong id="EN-US_TOPIC_0000001145913107__b1141714416146">Editor</strong> > <strong id="EN-US_TOPIC_0000001145913107__b1264264741414">Auto Suggest</strong>.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p557864842416">The <strong id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_b924913231967">Auto Suggest</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li19305235258"><span>In the <strong id="EN-US_TOPIC_0000001145913107__b9159141512431">Auto Suggest</strong> pane, configure <strong id="EN-US_TOPIC_0000001145913107__b1415971519436">Auto Suggest Min Character</strong>. The value ranges from 2 to 10 and defaults to 2.</span><p><p id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_p940420548252">To enable the Auto Suggest feature, sort the following groups:</p>
|
|
<ol type="a" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ol1830510372510"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li16974134182614">Keywords</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li161512448264">Data types</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li19957956192613">Loaded database objects<div class="note" id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_note195713562266"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_ul995765617265"><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li269811237278">Each group must be sorted.</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li185762324276">Databases are classified by keyword and data type.</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li1487985111275">If database is not connected, default keywords, that is, database type, must be displayed.</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li474411862813">When you enter a period (.), only related database objects are displayed. Keywords and data types are not displayed.</li><li id="EN-US_TOPIC_0000001145913107__en-us_topic_0185264581_li18549165314284">The Auto Suggest feature can be enabled using shortcut keys.</li></ul>
|
|
</div></div>
|
|
</li></ol>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_135.html">Personalizing Data Studio</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |