Erel B4X founder Staff member Licensed User Longtime User Nov 24, 2016 #1 The next version of B4A will include an auto-formatting feature. It fixes the code indentation. You can activate it by selecting the text and pressing on Alt + F. It will also be applied to pasted code. This is very useful as code copied from the forum doesn't include any tabs at all.
The next version of B4A will include an auto-formatting feature. It fixes the code indentation. You can activate it by selecting the text and pressing on Alt + F. It will also be applied to pasted code. This is very useful as code copied from the forum doesn't include any tabs at all.
Douglas Farias Expert Licensed User Longtime User Nov 24, 2016 #3 wow nice. please add lines too erel *-* Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 24, 2016 #4 This is not the correct place to post feature requests. Upvote 0
D Deleted member 103 Guest Nov 24, 2016 #6 You can activate it by selecting the text and pressing on Alt + F. It will also be applied to pasted code. Click to expand... I like it! Better would be if it would happen automatically (see Visual Studio), so without Alt + F. Upvote 0
You can activate it by selecting the text and pressing on Alt + F. It will also be applied to pasted code. Click to expand... I like it! Better would be if it would happen automatically (see Visual Studio), so without Alt + F.
imbault Well-Known Member Licensed User Longtime User Nov 24, 2016 #7 A Beautifier, a nice IDE feature, thanks Erel Upvote 0
M Mahares Expert Licensed User Longtime User Nov 24, 2016 #8 With the current IDE 6.30, when you press the Alt + F, the 'File' Selection menu pops up. What happens when the new feature for the auto format is implemented? Upvote 0
With the current IDE 6.30, when you press the Alt + F, the 'File' Selection menu pops up. What happens when the new feature for the auto format is implemented?
MitchBu Well-Known Member Licensed User Longtime User Nov 24, 2016 #9 Excellent idea. But I wonder if Alt-F, which is a windows shortcut for the Files menu, is the most appropriate. What about Ctrl-Alt-F instead, which does not conflict. Or add this option as well to the right click menu, like block comment ? Upvote 0
Excellent idea. But I wonder if Alt-F, which is a windows shortcut for the Files menu, is the most appropriate. What about Ctrl-Alt-F instead, which does not conflict. Or add this option as well to the right click menu, like block comment ?
Erel B4X founder Staff member Licensed User Longtime User Nov 25, 2016 #10 You can still reach the File menu by pressing on Alt and then F (after releasing the Alt key). Pressing on Alt moves the focus to the menu bar. Upvote 0
You can still reach the File menu by pressing on Alt and then F (after releasing the Alt key). Pressing on Alt moves the focus to the menu bar.
Pendrush Well-Known Member Licensed User Longtime User Nov 25, 2016 #11 Can be done to format all text in selected tab, without selecting text (code) first? Upvote 0
DonManfred Expert Licensed User Longtime User Nov 25, 2016 #12 Pendrush said: Can be done to format all text in selected tab, without selecting text (code) first? Click to expand... Erel said: This is not the correct place to post feature requests. Click to expand... Upvote 0
Pendrush said: Can be done to format all text in selected tab, without selecting text (code) first? Click to expand... Erel said: This is not the correct place to post feature requests. Click to expand...
MitchBu Well-Known Member Licensed User Longtime User Nov 25, 2016 #15 Any idea when the new version will be released ? Upvote 0
Pendrush Well-Known Member Licensed User Longtime User Nov 26, 2016 #17 @DonManfred This feature is in gray zone, exist and not exist, while is in a gray zone, I have made a question in proper post, as I don't know is maybe already work as I ask, because I cannot test it. Thank you. Upvote 0
@DonManfred This feature is in gray zone, exist and not exist, while is in a gray zone, I have made a question in proper post, as I don't know is maybe already work as I ask, because I cannot test it. Thank you.
KMatle Expert Licensed User Longtime User Nov 26, 2016 #18 Nice... A matter of taste here: Will the "leading space(s)" be removed? (see the first If. The next one has one before If) Code: If Job.Name .... If Job.Tag.... Upvote 0
Nice... A matter of taste here: Will the "leading space(s)" be removed? (see the first If. The next one has one before If) Code: If Job.Name .... If Job.Tag....
MitchBu Well-Known Member Licensed User Longtime User Nov 26, 2016 #19 KMatle said: Nice... A matter of taste here: Will the "leading space(s)" be removed? ( Click to expand... The whole point of indent is to have spaces before the nested if. Besides, as far as I understand, since it is an option, you use or not depending on your taste, unlike some other products I use where it is automatically enforced. At present I have to format myself, and yes, I have been accustomed to indent code, for legibility. I will enjoy having automation here. Upvote 0
KMatle said: Nice... A matter of taste here: Will the "leading space(s)" be removed? ( Click to expand... The whole point of indent is to have spaces before the nested if. Besides, as far as I understand, since it is an option, you use or not depending on your taste, unlike some other products I use where it is automatically enforced. At present I have to format myself, and yes, I have been accustomed to indent code, for legibility. I will enjoy having automation here.
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2016 #20 Pendrush said: Can be done to format all text in selected tab, without selecting text (code) first? Click to expand... Currently you do need to select all the text first (Ctrl + A, Alt + F). KMatle said: Will the "leading space(s)" be removed? Click to expand... Yes. Leading whitespace will be removed and replaced with tabs. MitchBu said: Any idea when the new version will be released ? Click to expand... During December. Upvote 0
Pendrush said: Can be done to format all text in selected tab, without selecting text (code) first? Click to expand... Currently you do need to select all the text first (Ctrl + A, Alt + F). KMatle said: Will the "leading space(s)" be removed? Click to expand... Yes. Leading whitespace will be removed and replaced with tabs. MitchBu said: Any idea when the new version will be released ? Click to expand... During December.