Visual Studio :: Inordinate Pauses When Indenting Lines Of HTML?

Jan 18, 2010

An example: I have a fairly simple "contact us" kind of HTML form. No controls, just straight HTML, total size of aspx file is 570 lines. There is a Country drop-down list, with roughly 240 lines of "<option value="..">..</option>, one for each country.

Say I need to change the indent of those option lines. I select all ~240 of them, hit TAB and.... wait.

and wait...

and wait...

Finally, VS recovers from whatever trauma I've inflicted upon it, having successfully indented the lines. We actually have other coders getting up with an audible sigh, and going to make coffee in frustration while this sort of thing happens. Just from changing the indent of a bunch of HTML. It also happens when doing a find & replace on that same selection of 240 option lines... huge pause!

Would something be wrong with our setup? Some options (HTML intellisense-related perhaps) which we can adjust so VS doesn't go catatonic when we simply want to change indent? I've resorted to pasting stuff into TextPad, doing the indenting/replacing/whatever, then pasting it back into VS. That can't be an industry standard practice, I can only assume something is off with our installs.

VS's reaction reminds me of Kylie from Fantastic Mr Fox. Select some HTML, hit TAB and...

View 3 Replies


Similar Messages:

Prevent Visual Studio From Formatting <% %> On Two Lines?

Jul 22, 2010

how to make the formatting also apply to the ASP.NET server side tag <% %>

Like the related question, a block like this one

Good

<ul id="menu">
<li><%: Html.ActionLink("Home", "Index", "Home")%></li>
<li><%: Html.ActionLink("About", "About", "Home")%></li>
</ul>

Will get formatted into

Bad

<ul id="menu">
<li>
<%: Html.ActionLink("Home", "Index", "Home")%></li>
<li>
<%: Html.ActionLink("About", "About", "Home")%></li>
</ul>

I want to prevent Visual Studio from changing the formatting concerning asp.net server tag <% %>.

View 1 Replies

Visual Studio :: Total Lines Of Code In A Project?

Dec 8, 2010

Any quick way to get a count on all the lines in a project?

That way you can use the info to try and convey the complexity of a project to a Customer.

Visual Studio 2010

View 1 Replies

Visual Studio Macro - Read First X Lines Instead Of Entire Document?

Jul 5, 2010

I've got a macro that updates a copyright header with the most recent edit date.

The problem I have is that the macro currently reads through the entire file rather than just the first 6 lines (which is all it needs).

Is there a way to get the Macro to only read the first "X" lines rather than the entire file?

Private selection As EnvDTE.TextSelection = DTE.ActiveDocument.Selection
Private Sub UpdateCopyrightHeader()
selection.StartOfDocument()
selection.EndOfDocument(True)
Dim content As String = selection.Text
Dim result = System.Text.RegularExpressions.Regex.Replace(content, regex, "<lastedit>" & FormatDateTime(Date.Now, vbLongDate) & "</lastedit>")
selection.Delete()
selection.Collapse()
Dim ed As EditPoint = selection.TopPoint.CreateEditPoint()
ed.Insert(result)
End Sub

View 1 Replies

Stop Visual Studio 2008 From Wrapping Lines When Formatting Code?

May 20, 2010

I have an annoying problem with Visual Studio 2008.

When I run the "format code" command ("control+k, control+d") -- it will insert a carriage return. How do I get it to stop doing this?

For example:

<label for="shipCompanyName">Company Name:</label>

undesirably becomes

<label for="shipCompanyName">
Company Name:<label />

View 2 Replies

Visual Studio :: Could Not Write Lines To File "objDebugTaxCalculatorComponent.csproj.FileListAbsolute.txt"

Dec 18, 2010

I have a simple class called TaxCalculator when I build solution the building doesn't complete and error list shows this message

" Error 1 Could not write lines to file "objDebugTaxCalculatorComponent.csproj.FileListAbsolute.txt". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. TaxCalculatorComponent"

View 1 Replies

C# - Cutting HTML String Into Separate Lines Without Breaking HTML Tags

Oct 24, 2010

I have to break a HTML content string in to multiple lines. And each line should have some fixed characters, 50 or 60 Also I don't want to break the word..or html tags...

ex : <p>Email: <a href="mailto:someone@gmail.com">someone@gmail.com</a></p>
<p><em>"Text goes <font color=red>Hello world</font> Text goes here and Text goes here Text goes here 1976."</em> </p>

How can I acheive this in C#?

View 1 Replies

Visual Studio :: How To Convert Whole Visual Studio 2008 Web Site Project To Visual Studio 2010

Aug 14, 2010

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project

my current project references

i have a very annoying iis problem

iis server stops working until app pool is recycled

i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem

View 2 Replies

Open Aspx Files Directly By Clicking On Them Like Html Files Without From Within Visual Studio Or Visual Web Dev?

Feb 24, 2011

is it possible to open aspx files directly by clicking on them like html files without from within visual studio or visual web dev?

View 2 Replies

Visual Studio :: Opening Visual Studio 2008 Project In Visual Studio 2010?

May 21, 2010

Anyone know if I can maintain a VS 2008 (.net 3.5) project by using the VS 2010 IDE ?

View 1 Replies

Visual Studio :: How To Create Html File

May 6, 2010

How can I generate a html file within the VS 2008? I used to use 'sp_makewebtask' within SQL Server, but would like to move the job to VS 2008.

View 5 Replies

Suppress HTML Validation Error In Visual Studio?

Sep 19, 2010

I have a custom attribute that I use in various elements in my ASP.NET HTML markup. Obviously it violates the DTD, and I get a validation error from Visual Studio. I hate ignoring errors in the error output window. Is there a way to suppress this error message? For example:

<label id="MyId" cid="MyCID" runat="server" />

cid is a custom attribute I use for various purposes, and it produces a validation error:

Validation (XHTML 1.0 Transitional): Attribute 'cid' is not a valid attribute of element label

View 1 Replies

Visual Studio :: Loosing Div Ids When Copying Html Syntax?

Sep 23, 2010

If I was to copy and paste the syntax below

<div
id="FabricSearchFabricSupplierText"><div>

it would come out as

<div
id="Div1"><div>

How do I stop it being changed to Div1?

I have looked under Tools | Options

I obvioulsly reuse my divs style definitions.

View 2 Replies

How To Make HTML Website With MasterPage In Visual Studio 2005

May 19, 2010

to start a HTML website having masterpage and first page should be index.html with a hyperlink to go to masterpage that contains some welcome page.

View 12 Replies

MVC :: HttpException In Html.RenderAction After Installing Visual Studio 2010 Pro RTM?

Apr 13, 2010

I get an HttpException (details below) after installing Visual Studio 2010 Pro RTM in an application developed using Visual Studio 2010 RC. The platform used was ASP.NET MVC2 RTW (already under VS10 RC).

I first uninstalled all RC software and even ASP.NET MVC 2, and then did a "clean" install of VS10 RTM. The ASP.NET MVC 2 version now installed on my dev machine is 2.0.50217.0.

Exception Message: Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.

InnerException Message: <FilePath>ViewsLanguageRenderLanguageNavigation.ascx(6): error BC30451: 'Model' is not declared. It may be inaccessible due to its protection level.

The error occurs on this "Html.RenderAction":

[Code]....

The "LanguageController" just calls into another service function as below:

[Code]....

Does anybody have an idea what is causing the problem?

Edit:

By the way, I might also share the actual view (partial view) that would show the languages to select from:

[Code]....

View 1 Replies

Visual Studio 2010 - Convert An Existing Website To HTML 5?

Mar 10, 2011

I have a website which created first by Visual Studio 2005, then I convert in to Visual Studio 2008 and currently using Visual Studio 2008. After Visual Studio 2010 Service Pack 1, HTML 5 and CSS 3 seem to be available. I want to convert my website to a VS 2010 website which uses HTML5.

How can this be done?

Is it possible to convert it to an ASP.NET Web Application while I'm porting it from VS2008 to Visual Studio 2010 ?

I know how to convert a website to web application in Visual Studio 2008 but I haven't used Visual Studio 2010 and have no idea about the differences.

View 3 Replies

Visual Studio :: Formating Html Or Aspx Code In Expression Web?

Jan 12, 2011

are their any good way to use MVC project in expression web 4. are their any shortcut key avilable or way to make that i can reformat the html by pressing shortcut key.are their any way to reformat only selected text and how i can reformat the text of current page using shortcut key

View 1 Replies

Visual Studio ::VS2008 Is Underlining A Variable In HTML View?

Mar 2, 2010

For some reason,VS2008 is underlining a variable in HTML view,saying it's not delcared,when it clearly is declared in the codebehind.

View 4 Replies

Visual Studio Inserting Indents As Spaces To Html Output?

Jan 4, 2011

I am using Visual Studio 2010 for an MVC website project. I have an big problem and dont know hot to solve it. When i am looking to the output of html in firebug indents in my aspx and ascx files are outputed as space in same places. I think its about line ending of files but i am not sure how to fix them. I am adding some pictures about problem.

When i am adding a breakpoint it also add red background to spaces (this is problem) I try to delete spaces after hit ctrl+k d same problem happen. If i delete all indents make page 1 line without spaces output is fine but it not a solution.

View 1 Replies

Visual Studio :: Visual Source Safe Plug In Control For Visual Studio 2005 IDE

Jan 28, 2010

where to find/download visual source safe plug in or visual source safe client for visual studio 2005 IDE?

I do not want to install visual source safe 2005 server.

View 1 Replies

Visual Studio :: The HTML Designer Is Incomplete - Set Properties In The Design By Right Clicking

Jan 26, 2010

I highlight an image in a HTML document and try to set its properties in the design by right clicking and looking up properties, I see only HTML or Document (no image). In the source view there is no link to image files folder. I guess this will be improved in the final version.

View 3 Replies

Visual Studio :: Changes To Properties In The Property Window Not Updating In HTML Control?

Sep 26, 2010

I'm using VWD 2010 Express and have found that when I change a property like AutoPostBack from within the property window the corresponding tag (<asp:TextBox...>) was not updated with the property change to the tag.

Is there a setting that I can change in the VWD properties that will enable changes through the property window for a control to automatically update the HTML tag for that control?

View 6 Replies

Visual Studio :: HTML View Not Recognising Public Vars In Codebehind?

Feb 7, 2010

I'm using VS 2008 and can't seem to get intellisense to reconise Public variables declared in my codebehind.I start a new ASP.NET Web Application project, named something other than "WebApplication1". In my default.aspx.vb codebehind, I declare, say, "Public MyValue As Integer = 10", at the class level of course.Then, in my default.aspx page, within the body tag, I type "<%= myvalue %>"No mater what I try, it refuses to recognise "myvalue" as a valid variable name, however the code DOES compile and runs perfectly. Everything else seems to work fine.

View 3 Replies

Visual Studio :: Migration From Visual Studio 2003 To Visual Studio 2010?

Apr 15, 2010

Is it possible to migrate the application which is in visual studio 2003 to visual studio 2010. provide me details about how to migrate.

View 2 Replies

Visual Studio :: Migration From Visual Studio 2005 To Visual Studio 2010?

Jun 16, 2010

I have a site in production developed in 2005 and i am planning to migrate to Visual studio 2010. Is there an easy way to do it?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved