Alexander Stolte Expert Licensed User Longtime User Feb 3, 2020 #1 Hello, 40 hours per week i program with VisualStudio and if i go back to B4X Tools, then it is a big change for me, because the text is not automatically formatted. I know i can mark the sub and press CTRL + F, but this is not the same... Any chance to implement this? Greetings
Hello, 40 hours per week i program with VisualStudio and if i go back to B4X Tools, then it is a big change for me, because the text is not automatically formatted. I know i can mark the sub and press CTRL + F, but this is not the same... Any chance to implement this? Greetings
stevel05 Expert Licensed User Longtime User Feb 3, 2020 #2 You don't need to mark the sub, you can press Alt + F at any time while the cursor is in the sub and it will format it. Last edited: Feb 3, 2020
You don't need to mark the sub, you can press Alt + F at any time while the cursor is in the sub and it will format it.
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2020 #3 Alt + F currently does one thing - set the indentation. This also happens automatically when you type.
Alt + F currently does one thing - set the indentation. This also happens automatically when you type.
Alexander Stolte Expert Licensed User Longtime User Feb 3, 2020 #4 Erel said: set the indentation Click to expand... where do i do it? If i type: Dim str as string and then press enter then the code is still in 1st place.
Erel said: set the indentation Click to expand... where do i do it? If i type: Dim str as string and then press enter then the code is still in 1st place.
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2020 #5 The cursor goes to the correct position when you enter or exit a block. It is not fully automatic. For example when you press enter after writing the sub line the indentation level will be set to 1. As written above you can always click on Alt + F to format the complete sub. You don't need to select anything.
The cursor goes to the correct position when you enter or exit a block. It is not fully automatic. For example when you press enter after writing the sub line the indentation level will be set to 1. As written above you can always click on Alt + F to format the complete sub. You don't need to select anything.