Вопрос

Is it possible to auto format classic ASP code in VS2010?
Got a project with much old ASP code, written by a lot of different trainees, so it's ... let's say complicated to read.
ASP is basic, VS supports basic, but it still doesn't want to format it with ctrl a+k+f.

Regards

Это было полезно?

Решение

Maybe this is a tool for your purpose: ASP Indent

Source: Auto-formatting tool for VBscript

Другие советы

Another way that I've recently tried, was renaming the file from foobar.asp to foobar.asp.vb

Then running auto format over the file.

And renaming back to foobar.asp

It seems to fix the indents and Pascal cases all the reserved words. But just run a diff to make sure it didn't do anything weird in your specific files.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top