This is a migrated thread and some comments may be shown as answers.

Question about indenting, spacing

1 Answer 26 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve
Top achievements
Rank 1
Steve asked on 09 Oct 2013, 07:32 PM
I am switching over to VS 2010 from VS 2008 (vb.net) and have just started evaluating JustCode, so please forgive me if my question is elementary in nature.

It seems that spaces and/or tabs are not being automatically inserted when I think they should be.

For example, if I type dim i as integer=x*y, I expect VS to reformat this as dim i as integer = x * y, but this is not happening. Should it be? If not, how do I fix it?

Also, if I type the following:

if a=b then
    c=5
   else
   c=4
end if


I expect VS will automatically reformat this to the following but it doesn't. I pretty much get what I typed.
If a = b Then
    c = 5
Else
   c = 4
End If

1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 10 Oct 2013, 09:48 AM
Hello Steve,

 Thanks for contacting us.
We have a command "Format code" that do this. It is available in the Visual Aid Code Generation menu and it has a keyboard shortcut Ctrl + Alt + F. You can activate it for the whole file or just for a selection.
Thanks.

Regards,
Zdravko
Telerik
Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Share this question
or