P Penko Active Member Licensed User Longtime User Feb 29, 2012 #1 This one is also self-explainatory. It some code editors, pressing Ctrl+Shift+I indents the code automatically. I didn't see any implementation in B4A, only manual indents.
This one is also self-explainatory. It some code editors, pressing Ctrl+Shift+I indents the code automatically. I didn't see any implementation in B4A, only manual indents.
joseluis Active Member Licensed User Longtime User Feb 29, 2012 #2 We also have multiple-line indenting. Selecting several lines and pressing TAB or Shift + TAB indents and unindents blocks of code. It's not the same but...
We also have multiple-line indenting. Selecting several lines and pressing TAB or Shift + TAB indents and unindents blocks of code. It's not the same but...
P Penko Active Member Licensed User Longtime User Feb 29, 2012 #3 Thank you mate for answering. Check this code: B4X: Sub btnBack_Click StartActivity(a) End Sub Sub btnCheck_Click WebView1.LoadUrl("http://abv.bg") Activity.Title = "Site" End Sub Select it and click "Tab". All lines to together and the effect is the same. What I want is that the code becomes as follows: B4X: Sub btnBack_Click StartActivity(a) End Sub Sub btnCheck_Click WebView1.LoadUrl("http://abv.bg") Activity.Title = "Site" End Sub Shift + Tab also couldn't solve my "issue".
Thank you mate for answering. Check this code: B4X: Sub btnBack_Click StartActivity(a) End Sub Sub btnCheck_Click WebView1.LoadUrl("http://abv.bg") Activity.Title = "Site" End Sub Select it and click "Tab". All lines to together and the effect is the same. What I want is that the code becomes as follows: B4X: Sub btnBack_Click StartActivity(a) End Sub Sub btnCheck_Click WebView1.LoadUrl("http://abv.bg") Activity.Title = "Site" End Sub Shift + Tab also couldn't solve my "issue".
P Penko Active Member Licensed User Longtime User Feb 29, 2012 #5 Sorry, I have missed your "It's not the same but" sentence
rtek1000 Active Member Licensed User Longtime User Sep 18, 2015 #6 If anyone need format your code: https://www.b4x.com/android/forum/threads/b4a-source-code-formatter-now-open-source.21758/
If anyone need format your code: https://www.b4x.com/android/forum/threads/b4a-source-code-formatter-now-open-source.21758/
Erel B4X founder Staff member Licensed User Longtime User May 5, 2016 #8 Note that this feature is partially implemented. It auto indents when you write the code.
L leitor79 Active Member Licensed User Longtime User May 5, 2016 #9 Yes. But it would be useful when pasting o refactoring code. I'd rather had an on-demand code block indent function than the auto indent. Regards!
Yes. But it would be useful when pasting o refactoring code. I'd rather had an on-demand code block indent function than the auto indent. Regards!