문제

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