repost: headaches with formatting in VWD

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
 
K

Ken Cox - Microsoft MVP

What about

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

Ken
Microsoft MVP [ASP.NET]
 
J

Juan T. Llibre

And, for C#, try :

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





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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top