repost: headaches with formatting in VWD

  • Thread starter Thread starter D. Shane Fowlkes
  • Start date Start date
D

D. Shane Fowlkes

The Smart Indenting "feature" is driving me absolutlely crazy in VWD.

Problem: VWD in Code View insists on tabbing a lot of my code over to it's
own liking and effects mainly my comments in the code.

First of all, I've searched the help files and searched forums.asp.net. I
can't seem to find a solution so I thought I'd try here. When I look at
Tools >> Options and look under Text Editor >> All Languages >> Tabs, it has
a subtle message on the right side stating "The indentation settings for
individual text formats conflict with each other.". Gee - thanks.

I have tried setting all languages the same and everything I can think of
and nothing stops it from scooting my comments over an extra 5-10 spaces.
Further more, when I select one of the choices under Indenting, mainly
"None", it never sticks. It always comes back to that message I stated
above. I can't seem to stop VWD from reformatting my code.

I've complete uninstalled it and reinstalled it an I still have the same
problem. Any pointers??

It turns this:

'Testing for a true condition
If X = 1 Then

'Do something
MyCommand()

'If it tests false then.....
Else
OtherCommand()

End If


into this:

'Testing for a true condition
If X = 1 Then

'Do something
MyCommand()

'If it tests false then.....
Else

OtherCommand()

End If
 
What about

Tools > Options > Text Editor > Basic > VB Specific
Uncheck Pretty Listing (reformatting) of code

Ken
Microsoft MVP [ASP.NET]
 
And, for C#, try :

Tools > Options > Text Editor > C# > Tabs
and a bunch of options under Formatting.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
Ken Cox - Microsoft MVP said:
What about

Tools > Options > Text Editor > Basic > VB Specific
Uncheck Pretty Listing (reformatting) of code

Ken
Microsoft MVP [ASP.NET]

D. Shane Fowlkes said:
The Smart Indenting "feature" is driving me absolutlely crazy in VWD.

Problem: VWD in Code View insists on tabbing a lot of my code over to it's
own liking and effects mainly my comments in the code.

First of all, I've searched the help files and searched forums.asp.net. I
can't seem to find a solution so I thought I'd try here. When I look at
Tools >> Options and look under Text Editor >> All Languages >> Tabs, it has
a subtle message on the right side stating "The indentation settings for
individual text formats conflict with each other.". Gee - thanks.

I have tried setting all languages the same and everything I can think of
and nothing stops it from scooting my comments over an extra 5-10 spaces.
Further more, when I select one of the choices under Indenting, mainly
"None", it never sticks. It always comes back to that message I stated
above. I can't seem to stop VWD from reformatting my code.

I've complete uninstalled it and reinstalled it an I still have the same
problem. Any pointers??

It turns this:

'Testing for a true condition
If X = 1 Then

'Do something
MyCommand()

'If it tests false then.....
Else
OtherCommand()

End If


into this:

'Testing for a true condition
If X = 1 Then

'Do something
MyCommand()

'If it tests false then.....
Else

OtherCommand()

End If
 
Back
Top