<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Formatting Code With SQL Developer	</title>
	<atom:link href="https://www.salvis.com/blog/2020/04/13/formatting-code-with-sql-developer/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.salvis.com/blog/2020/04/13/formatting-code-with-sql-developer/</link>
	<description>Database-centric development</description>
	<lastBuildDate>Mon, 13 May 2024 12:18:12 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/>
<atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/>
<atom:link rel="hub" href="https://websubhub.com/hub"/>
<atom:link rel="self" href="https://www.salvis.com/blog/2020/04/13/formatting-code-with-sql-developer/feed/"/>
	<item>
		<title>
		By: Philipp Salvisberg		</title>
		<link>https://www.salvis.com/blog/2020/04/13/formatting-code-with-sql-developer/#comment-146270</link>

		<dc:creator><![CDATA[Philipp Salvisberg]]></dc:creator>
		<pubDate>Mon, 13 May 2024 12:18:12 +0000</pubDate>
		<guid isPermaLink="false">https://www.salvis.com/blog/?p=9572#comment-146270</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.salvis.com/blog/2020/04/13/formatting-code-with-sql-developer/#comment-146265&quot;&gt;VM&lt;/a&gt;.

While you can do what you want, it is not that simple. Besides standalone insert statements you have to deal with existing indentations produced by other rules that where applied for PL/SQL blocks, if statements, case statements, loops, etc. 

This blog post is a basic introduction of the formatter in SQL Developer. It&#039;s the wrong place to deal with specific formatter/Arbori questions and issues. The right place for these kind of questions is the &lt;a href=&quot;https://forums.oracle.com/ords/apexds/domain/dev-community/category/sql-developer&quot; rel=&quot;nofollow ugc&quot;&gt;Oracle forum for SQL Developer&lt;/a&gt;. I kindly ask you to seek help there. Thank you.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.salvis.com/blog/2020/04/13/formatting-code-with-sql-developer/#comment-146265">VM</a>.</p>
<p>While you can do what you want, it is not that simple. Besides standalone insert statements you have to deal with existing indentations produced by other rules that where applied for PL/SQL blocks, if statements, case statements, loops, etc. </p>
<p>This blog post is a basic introduction of the formatter in SQL Developer. It&#8217;s the wrong place to deal with specific formatter/Arbori questions and issues. The right place for these kind of questions is the <a href="https://forums.oracle.com/ords/apexds/domain/dev-community/category/sql-developer" rel="nofollow ugc">Oracle forum for SQL Developer</a>. I kindly ask you to seek help there. Thank you.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: VM		</title>
		<link>https://www.salvis.com/blog/2020/04/13/formatting-code-with-sql-developer/#comment-146265</link>

		<dc:creator><![CDATA[VM]]></dc:creator>
		<pubDate>Mon, 13 May 2024 11:46:30 +0000</pubDate>
		<guid isPermaLink="false">https://www.salvis.com/blog/?p=9572#comment-146265</guid>

					<description><![CDATA[Hello Philipp, to be able to do the line break every 3 element i have done this,

However i&#039;m stuck when it comes to indent, i want to align to the first element of the INSERT INTO statement, in my exemple aligne to &quot;col1&quot;.
Can you help me further ?

Much appreciated 
VM 

&lt;pre&gt;prelude: runOnce
    -&#062; {
    var count = 1;
    var accumulatedString = &quot;&quot;;
    var accumulatedSet = [];
};

insertIntoBrk: 
[stmt) insert_into_clause &#038; [node) column &#038; [node) identifier &#038; stmt {
            var node = tuple.get(&quot;node&quot;);
            var content = target.src[node.from].content;
            
            for( var i = 0; i&#060;content.length; i++ ) {
                if(count % 3 == 0 ) {
                    var nodeIndent = &#039;\n&#039;;
                    struct.putNewline(node.to + 1, nodeIndent);
                    break;
                }
            }
count++;
};&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Hello Philipp, to be able to do the line break every 3 element i have done this,</p>
<p>However i&#8217;m stuck when it comes to indent, i want to align to the first element of the INSERT INTO statement, in my exemple aligne to &#8220;col1&#8221;.<br />
Can you help me further ?</p>
<p>Much appreciated<br />
VM </p>
<pre>prelude: runOnce
    -&gt; {
    var count = 1;
    var accumulatedString = "";
    var accumulatedSet = [];
};

insertIntoBrk: 
[stmt) insert_into_clause &amp; [node) column &amp; [node) identifier &amp; stmt {
            var node = tuple.get("node");
            var content = target.src[node.from].content;
            
            for( var i = 0; i&lt;content.length; i++ ) {
                if(count % 3 == 0 ) {
                    var nodeIndent = &#039;\n&#039;;
                    struct.putNewline(node.to + 1, nodeIndent);
                    break;
                }
            }
count++;
};</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Philipp Salvisberg		</title>
		<link>https://www.salvis.com/blog/2020/04/13/formatting-code-with-sql-developer/#comment-145187</link>

		<dc:creator><![CDATA[Philipp Salvisberg]]></dc:creator>
		<pubDate>Mon, 06 May 2024 13:45:45 +0000</pubDate>
		<guid isPermaLink="false">https://www.salvis.com/blog/?p=9572#comment-145187</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.salvis.com/blog/2020/04/13/formatting-code-with-sql-developer/#comment-145186&quot;&gt;VM&lt;/a&gt;.

Yes, that&#039;s doable]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.salvis.com/blog/2020/04/13/formatting-code-with-sql-developer/#comment-145186">VM</a>.</p>
<p>Yes, that&#8217;s doable</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
