2

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

4

2 回答 2

2

也许这是一个适合您的工具:ASP Indent

来源:VBscript 的自动格式化工具

于 2013-08-07T15:59:34.353 回答
0

我最近尝试的另一种方法是将文件从 foobar.asp 重命名为 foobar.asp.vb

然后对文件运行自动格式化。

并重命名回 foobar.asp

它似乎修复了所有保留字的缩进和 Pascal 情况。但只需运行 diff 以确保它在您的特定文件中没有做任何奇怪的事情。

于 2017-08-29T00:36:25.253 回答