views:

153

answers:

3

Unfortunately VS2008 has wrapped some of my code automatically, this isnt helpful for searching as it has wrapped at points that has resulted in split names of variables in my designer project. e.g. Variable named MyVariable would appear as below:

    "MyVar", & _
    "iable"

This means i cant search for these variables. Is there any way that i can prevent VS from wrapping like this? Alternatively is there any way that i could search for a variable like this even if it is wrapped? Thanks in advance!

A: 

You can turn off word wrapping in VB code by going to Tools/Options menu, under Text Editors/VB.NET.

Tomas Lycken
+1  A: 

Tools ->
Options ->
Show all settings-> (at the botom of window)
Text Editor ->
Basic ->
General or VBSpecific->

Wordwrap and Pretty listing

I think its there :)

the_ajp
Wordwrap is already unchecked and disabling pretty listing also prevents quick tabbing etc which allows me to work faster. Thanks fo the hasty response though
Ah yes I see. V strange. I don't have a clue then. I've never seen this in my code.
the_ajp
A: 

To answer your secondary question:

Find (CTRL+F), select "Search hidden text" and "Use: Regular expressions"

searching for

"Class.*\n.*Inherits"

Will find

Public (HERE)Class Form1
   Inherits(TO HERE) System.Windows.Forms.Form
hometoast