forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
105 lines
34 KiB
HTML
105 lines
34 KiB
HTML
<a name="EN-US_TOPIC_0000001188521052"></a><a name="EN-US_TOPIC_0000001188521052"></a>
|
|
|
|
<h1 class="topictitle1">Editor</h1>
|
|
<div id="body1584526252531"><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p269015534415">This section provides details on how to personalize syntax coloring, SQL history information, templates, and formatter.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section6791101652013"><a name="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section6791101652013"></a><a name="en-us_topic_0185264581_section6791101652013"></a><h4 class="sectiontitle">Syntax Coloring</h4><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p25633677">Follow the steps to customize the SQL highlight color:</p>
|
|
</div>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol29376504"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li63061947"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__b1163415143518">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__b1563414510359">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p8294256">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b68531255193119">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__li1552001193415"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__b108661711103512">Editor > Syntax Coloring</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__p45492418359">The <strong id="EN-US_TOPIC_0000001188521052__b28261519133513">Syntax Coloring</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li60434506"><span>Click the color button to customize the color for the type of syntax.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p63356812">For example, click <span><img id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_image33340398" src="figure/en-us_image_0000001234200697.jpg"></span> to customize the color for <strong id="EN-US_TOPIC_0000001188521052__b742794010352">Strings</strong>. The color picker dialog box is displayed.</p>
|
|
<p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p38569870">Use the color picker to set the required color for a specific syntax category. You can choose basic colors or define custom colors in the color picker.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p37151789">Click <strong id="EN-US_TOPIC_0000001188521052__b425115317362">Restore Defaults</strong> from <strong id="EN-US_TOPIC_0000001188521052__b1925114323610">Syntax Coloring</strong> pane to reset to default color scheme.</p>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li56504928"><span>Click <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b9408737391">OK</strong>. The <strong id="EN-US_TOPIC_0000001188521052__b1144821510360">Restart Data Studio</strong> dialog box is displayed.</span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li41028295"><span>Click <strong id="EN-US_TOPIC_0000001188521052__b847193512397">Yes </strong>to restart Data Studio. If any export, import or execution operations are in progress, then Data Studio displays the <strong id="EN-US_TOPIC_0000001188521052__b195418438392">Process is running </strong>dialog box<strong id="EN-US_TOPIC_0000001188521052__b4541114317391">.</strong></span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li49840843"><span>Click <strong id="EN-US_TOPIC_0000001188521052__b10523649143913">Force Restart</strong> to discard operations and restart Data Studio. Click <strong id="EN-US_TOPIC_0000001188521052__b95241494391">OK</strong> to continue performing operations.</span><p><div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p51391268">The <em id="EN-US_TOPIC_0000001188521052__i10111195553918">Preferences.prefs</em> file contains the custom color settings. If the file is corrupted, Data Studio will display the default values.</p>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p11533518402">The custom color(s) will be set after you restart Data Studio.</p>
|
|
</p></li></ol>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section1382623812471"><a name="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p156551471720">You can customize Data Studio to set the number of SQL history count that can be made available and also the number of characters for the query for each of the query saved in SQL history.</p>
|
|
<p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p1369943810195">Follow the steps to customize the number of executed queries and number of characters in the query to be saved in SQL History:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol1696363894718"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li796323810472"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b16853105513119">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b168531755193112">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p12963163818471">The <strong id="EN-US_TOPIC_0000001188521052__b933827429">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li8963438184712"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b14710381648">Editor > SQL History</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p66554381645">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b2853455123112">SQL History</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li79631838194714"><span>Set the number of queries to be saved in <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b69162020133713">SQL History Count</strong> field.</span><p><div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p1696313813478">Minimum value is 1 and maximum is 1000. The current value set for this preference will be displayed.</p>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li996333824714"><span>Set the number of characters to be allowed in each query that is saved in the SQL History in the <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b2068961073810">SQL Query Characters</strong> field.</span><p><div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p18964173810472">Minimum value is 1 and maximum is 1000. Enter "0" in this field to set no character limit. The current value set for this preference will be displayed.</p>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li512719365151"><span>Click <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b452412311013">Apply</strong>.</span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li1696414380472"><span>Click <strong id="EN-US_TOPIC_0000001188521052__b2105162546">OK</strong>.</span><p><div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_ul18964173864712"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li14591357123412">Click <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b63821315134515">Restore Defaults</strong> from <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1038291517452">SQL History</strong> pane to reset to default value.</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li2052175993413">The default value for <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b201191013124510">SQL History Count</strong> is 50 and <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1511941316455">SQL Query Characters</strong> it is 1000.</li><li id="EN-US_TOPIC_0000001188521052__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 with the operation.</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li44650243512">If there are unsaved changes and you navigate away from this pane, then a message displays to state that there are unsaved changes.</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li62051343352">Pinned queries are not affected by the changes made to the <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b073113561327">SQL History Count</strong> field. <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b4755164417313">Example: </strong>If the number of pinned queries is 50 and the <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b035295717310">SQL History Count</strong> is set to 25, then SQL History will show 50 pinned queries.</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li0964193817477">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b123913511557">SQL Query Characters</strong> changes affects only queries added post the configuration change.</li></ul>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section116501350276"><a name="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section116501350276"></a><a name="en-us_topic_0185264581_section116501350276"></a><h4 class="sectiontitle">Adding Templates</h4><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p6467171002317">You can customize Data Studio to create new, edit existing, and remove templates. Refer to the <a href="DWS_DS_128.html#EN-US_TOPIC_0000001234200573__en-us_topic_0185264856_section2303144411114">Using Templates</a> section for detailed information on templates.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p11634264182">Restoring the settings to default removes all user defined templates from the list.</p>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p84681310162310">Follow the steps below to create templates:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol1365411511510"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li9504112592416"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b422383515">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1722386517">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p1850642592410">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b323188657">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li16508625122413"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1078519511042">Editor > Templates</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p1229319525410">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1710911107107">Templates</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li094108102512"><span>Click <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b7624436181610">New</strong>.</span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li18654184286"><span>Enter a name for the template in the <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b53114393186">Name</strong> field.</span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li9855614122816"><span>Enter description in the <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1975015511814">Description</strong> field.</span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li152941012182811"><span>Enter the SQL statement pattern in the <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b10960857132018">Pattern</strong> field.</span><p><div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p117578557434">The text entered in <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b725671421616">Pattern</strong> field will be syntax highlighted.</p>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li5959121812110"><span>Click <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b298212294211">OK</strong>.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section275211201148"><h4 class="sectiontitle">Modifying Templates</h4><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p418961669">Follow the steps below to edit templates:</p>
|
|
</div>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol208390202046"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li5838192019417"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1251524110115">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b3515184114117">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p10838720744">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b175151741819">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li16838202010411"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b161291121052">Editor > Templates</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p821915313518">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b65151241217">Templates</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li108382201548"><span>Click <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b14515104117115">Edit</strong>.</span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li483812201140"><span>Edit the name in the <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b351514116110">Name</strong> field, if required.</span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li168399201416"><span>Edit the description in the <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1951534114111">Description</strong> field, if required.</span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li1683919201942"><span>Edit the SQL statement pattern in the <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b851620411015">Pattern</strong> field, if required.</span><p><div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p11840148102218">The text entered in <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1751613419110">Pattern</strong> field will be syntax highlighted.</p>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li2083916201742"><span>Click <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b10516241010">OK</strong>.</span></li></ol>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section959595720418"><h4 class="sectiontitle">Removing Templates</h4><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p193865141364">Follow the steps below to remove templates:</p>
|
|
</div>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol284019201944"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li17840112016413"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b115161411814">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1251614417119">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p1684010201040">The <strong id="EN-US_TOPIC_0000001188521052__b1010481276">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li18409203420"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b128119131152">Editor > Templates</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p22632153519">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b14516194114110">Templates</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li19840122011410"><span>Select the template to be removed, and click <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b165174411210">Remove</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p15840122015419">The template is removed from the <strong id="EN-US_TOPIC_0000001188521052__b1524711256188">Templates</strong> list.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p19337113961314">Default templates that are removed can be added back using <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1914572161718">Restore Removed</strong> option. It will restore the template to the last updated change. <strong id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_section1874919154327"><h4 class="sectiontitle">Reverting to Default Templates</h4><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p15624123963314">Follow the steps below to revert to default templates:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol373183133519"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li12734852183610"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b8641132591817">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b7642162511819">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p1882611533362">The <strong id="EN-US_TOPIC_0000001188521052__b895555837">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li11461194820365"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b16428336319">Editor > Templates</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p1506935153113">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b764912521819">Templates</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li6216592361"><span>Select at least one default template that is modified to revert to default template settings.</span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li63081356373"><span>Click <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b166511625131816">Revert to Default</strong>.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section64411944205615"><a name="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section64411944205615"></a><a name="en-us_topic_0185264581_section64411944205615"></a><h4 class="sectiontitle">Formatter</h4><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p1265041225715">You can customize Data Studio to set the tab width and convert tab to spaces while performing indent and unindent operation. Refer to <a href="DWS_DS_128.html#EN-US_TOPIC_0000001234200573__en-us_topic_0185264856_section2611012152811">Indent/Un-indent Lines</a> section to perform indent/unindent operation and replace tab with spaces.</p>
|
|
<p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p14319172415593">Follow the steps to customize the indent size and convert tab to spaces:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol14721544165610"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li1947218446567"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b4129153994416">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b4129153944415">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p1347294418564">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1913113913447">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li3472844185615"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b19586172611510">Editor > Formatter</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p178914271154">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b11133639164413">Formatter</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li123341533500"><span>Select the <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b105101038102312">Insert Space</strong> option to replace tab with spaces or <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b94601246162418">Insert Tab</strong> to add/remove tabs while indenting/unindenting lines.</span></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li1047220441564"><span>Enter the indent size in <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b11579112212616">Indent Size</strong>. Based on the number specified in this field, the indent/unindent/space length is defined.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section210212814444"><a name="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section210212814444"></a><a name="en-us_topic_0185264581_section210212814444"></a><h4 class="sectiontitle">Transaction</h4><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p583418081015">Follow the steps to edit Transaction settings:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol115145429443"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li19431447111015"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b0434474101">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b204334715101">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p643164712108">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b543104781016">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li749544181119"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b7495104101120">Editor > Transaction</strong></span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p04951341201117">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b2495184110111">Transaction</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li022713431714"><span>In the <strong id="EN-US_TOPIC_0000001188521052__b132101014277">Auto Commit</strong> window, you can perform the following operations:</span><p><ul id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ul1364744016174"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li26471940181714">Select <strong id="EN-US_TOPIC_0000001188521052__b8317181517426">Enable</strong> to switch on the auto commit feature. In this case commit and rollback button will be disabled. Transaction will be committed automatically.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p4325649104014"><span><img id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_image1779495194016" src="figure/en-us_image_0000001188362622.png"></span></p>
|
|
<ul id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ul20320184651710"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li103201466176">Select <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b9408174810406">Disable</strong> to switch off the auto commit feature. Commit and Rollback button can be used manually for commiting or reverting changes.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p09371459164016"><span><img id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_image65721955419" src="figure/en-us_image_0000001188521172.png"></span></p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p34081148164014">Default behavior for Auto-Commit is <strong id="EN-US_TOPIC_0000001188521052__b480518361369">ON</strong>.</p>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section6422152693619"><h4 class="sectiontitle">Folding</h4><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p1942171019394">Follow the steps for Folding:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol39111914134719"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li16397193993719"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b189111814154712">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1791111434716">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p1139717391372">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1791131424719">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li51104543378"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b4911191414476">Editor > Folding</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p4111195412373">The Folding pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li1481416201401"><span>Select <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b154321309507">Enable </strong>or <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1682020215505">Disable</strong>. By default, <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b22872519504">Enable </strong>is selected.</span><p><ul id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ul13814320184020"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li18516510400"><strong id="EN-US_TOPIC_0000001188521052__b8250115418620">Enable:</strong> This indicates enable SQL folding feature. Supported SQL statements can be folded or unfolded.</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li57628101411"><strong id="EN-US_TOPIC_0000001188521052__b14139115811615">Disable:</strong> This indicates disable SQL folding feature.<div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_p113312397412">Modification in settings reflects in newly opened editor. The editor which is already opened will remain with previous settings until restart.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section0424142673618"><h4 class="sectiontitle">Font</h4><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p523335105413">Follow the steps to set Font:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol12233155155417"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li165041341103819"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1223314545415">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b16234175105415">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p16504194113814">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b172344515542">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li95042411381"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b2023413565417">Editor > Font</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p45041041133816">The Font pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li13346173012447"><span>Provide required font size within range from 1 to 50. By default, font size is 10.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_section996203916449"><h4 class="sectiontitle">Auto Suggest</h4><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p185055713246">Follow the steps for Auto Suggest:</p>
|
|
<ol id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol10759144220442"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li112151029102414"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b1975918427441">Settings</strong> > <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b67595425445">Preferences</strong> from the main menu.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p141421136102412">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b7759174217444">Preferences</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li1757804820244"><span>Choose <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b11407011619">Editor > Auto Suggest</strong>.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p557864842416">The <strong id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_b924913231967">Auto Suggest</strong> pane is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li19305235258"><span>In <strong id="EN-US_TOPIC_0000001188521052__b9159141512431">Auto Suggest</strong> pane, provide required number of character in <strong id="EN-US_TOPIC_0000001188521052__b1415971519436">Auto Suggest Min Character</strong>. Default value is 2. Range of number of Auto Suggest minimum characters are within 2 to 10.</span><p><p id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_p940420548252">For auto suggest, sorting can be as follows:</p>
|
|
<ol type="a" id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_ol1830510372510"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li16974134182614">Keywords</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li161512448264">Data types</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li19957956192613">Loaded Database Objects<div class="note" id="EN-US_TOPIC_0000001188521052__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_0000001188521052__en-us_topic_0185264581_ul995765617265"><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li269811237278">Each group should be in sorted order.</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li185762324276">Databases are classified by keyword and data type.</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li1487985111275">If database is not connected, then default keywords must be displayed.</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li474411862813">When you press dot (.) then only respective database objects should be displayed. Keywords/Data types should not be displayed.</li><li id="EN-US_TOPIC_0000001188521052__en-us_topic_0185264581_li18549165314284">Auto suggest should be triggered by shortcuts.</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>
|
|
|