Formatting options
3 posts
• Page 1 of 1
Formatting options
Hi,
Is there a possibility to full format code with respect to indents, spaces and newlines before/after code elements?
Eg. before formatting:
should be after:
Now the code formatting has only indented myfunc().
Is there a possibility to full format code with respect to indents, spaces and newlines before/after code elements?
Eg. before formatting:
- Code: Select all
if ( $test=='abcd' ) {
myfunc ( );
}
should be after:
- Code: Select all
if ($test == 'abcd')
{
myfunc();
}
Now the code formatting has only indented myfunc().
- SylwesterZ
- Posts: 2
- Joined: December 18th, 2016, 1:57 pm
Re: Formatting options
Hi,
Thanks for the post. Currently formatting is just doing what's 100% sure it's desired formatting. With the opening backslash, someone would like it at the same line as if, someone else wants it bellow. So formatting just leaves it where you place it.
However we do have plans to make formatting much more customization so everyone could setup their desired configuration.
Thanks!
Thanks for the post. Currently formatting is just doing what's 100% sure it's desired formatting. With the opening backslash, someone would like it at the same line as if, someone else wants it bellow. So formatting just leaves it where you place it.
However we do have plans to make formatting much more customization so everyone could setup their desired configuration.
Thanks!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
Re: Formatting options
Thanks, it would be great to have similar customization options as C# language in VS. Now when copying and pasting, code is unformatted/source-formatted which needs too much manual fixing.
- SylwesterZ
- Posts: 2
- Joined: December 18th, 2016, 1:57 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 89 guests