有没有办法在Visual Studio 2008中折叠Classic ASP的函数和子例程?

时间:2022-06-01 13:05:35

Is there a way to enabling collapsing of functions and sub-routines for Classic ASP in Visual Studio 2008? I'm able to manually go through and specify blocks of code as collapsable, but it would save me a lot of time if there was a way to automatically do this.

有没有办法在Visual Studio 2008中为Classic ASP启用功能和子例程的折叠?我能够手动完成并指定代码块作为可折叠的,但如果有办法自动执行此操作,它将节省我很多时间。

Otherwise, is there another IDE or text editor that you can think of that supports this?

否则,是否有另一个IDE或文本编辑器,您可以想到它支持这个?

5 个解决方案

#1


Notepad++ has a "Function List" plugin:

Notepad ++有一个“功能列表”插件:

http://sourceforge.net/project/showfiles.php?group_id=189927&package_id=223668

While this doesn't allow you to collapse your Classic ASP functions and sub-routines, it lists them in a side panel and you can click them to jump from function to function.

虽然这不允许您折叠经典ASP函数和子例程,但它会在侧面板中列出它们,您可以单击它们从一个函数跳转到另一个函数。

#2


Notepad++ allows you to collapse code. I'm not sure if it collapses on function level, but it sure allows you to collapse whole code blocks and HTML blocks (e.g. you can collapse the "head" or a "div" block, etc).

Notepad ++允许您折叠代码。我不确定它是否在功能级别崩溃,但它确实允许您折叠整个代码块和HTML块(例如,您可以折叠“head”或“div”块等)。

@coxymla: are you sure mate? I just opened up a HTML page in Notepad++ and I can collapse for example the HEAD without any problems. Maybe I did not explain it clear enough in the above text, but that's because English is not my main language.

@coxymla:你确定交配吗?我刚刚在Notepad ++中打开了一个HTML页面,我可以崩溃,例如HEAD没有任何问题。也许我在上面的文字中没有说清楚,但那是因为英语不是我的主要语言。

#3


I haven't been able to find a good solution for this, unfortunately.

不幸的是,我无法为此找到一个好的解决方案。

When you open an ASP document, Notepad++ allows you to collapse functions and script blocks, but not HTML elements, even if you set the Language to HTML! (When you open a .htm file in Notepad++, it does allow you to collapse those elements though.) The VS 2008 text editor is the other way around - HTML elements are fair game but not ASP code itself.

当您打开ASP文档时,即使您将语言设置为HTML,Notepad ++也允许您折叠函数和脚本块,但不能折叠HTML元素! (当您在Notepad ++中打开.htm文件时,它确实允许您折叠这些元素。)VS 2008文本编辑器是另一种方式 - HTML元素是公平游戏,但不是ASP代码本身。

Edited for clarity.

编辑清晰。

#4


FunctionList plugin does not work in Windows environment...

FunctionList插件在Windows环境中不起作用...

NotePad++ will not do code collapse on .asp files...

NotePad ++不会对.asp文件进行代码折叠...

#5


Primalscript does this. It's mostly very nifty, except it's tending towards bloat which is frustrating. It's also pricey, but the speed it adds to development probably justifies the cost over time.

Primalscript这样做。它主要是非常漂亮,除了它倾向于膨胀令人沮丧。它也很昂贵,但它为开发增加的速度可能证明了随着时间的推移成本。

#1


Notepad++ has a "Function List" plugin:

Notepad ++有一个“功能列表”插件:

http://sourceforge.net/project/showfiles.php?group_id=189927&package_id=223668

While this doesn't allow you to collapse your Classic ASP functions and sub-routines, it lists them in a side panel and you can click them to jump from function to function.

虽然这不允许您折叠经典ASP函数和子例程,但它会在侧面板中列出它们,您可以单击它们从一个函数跳转到另一个函数。

#2


Notepad++ allows you to collapse code. I'm not sure if it collapses on function level, but it sure allows you to collapse whole code blocks and HTML blocks (e.g. you can collapse the "head" or a "div" block, etc).

Notepad ++允许您折叠代码。我不确定它是否在功能级别崩溃,但它确实允许您折叠整个代码块和HTML块(例如,您可以折叠“head”或“div”块等)。

@coxymla: are you sure mate? I just opened up a HTML page in Notepad++ and I can collapse for example the HEAD without any problems. Maybe I did not explain it clear enough in the above text, but that's because English is not my main language.

@coxymla:你确定交配吗?我刚刚在Notepad ++中打开了一个HTML页面,我可以崩溃,例如HEAD没有任何问题。也许我在上面的文字中没有说清楚,但那是因为英语不是我的主要语言。

#3


I haven't been able to find a good solution for this, unfortunately.

不幸的是,我无法为此找到一个好的解决方案。

When you open an ASP document, Notepad++ allows you to collapse functions and script blocks, but not HTML elements, even if you set the Language to HTML! (When you open a .htm file in Notepad++, it does allow you to collapse those elements though.) The VS 2008 text editor is the other way around - HTML elements are fair game but not ASP code itself.

当您打开ASP文档时,即使您将语言设置为HTML,Notepad ++也允许您折叠函数和脚本块,但不能折叠HTML元素! (当您在Notepad ++中打开.htm文件时,它确实允许您折叠这些元素。)VS 2008文本编辑器是另一种方式 - HTML元素是公平游戏,但不是ASP代码本身。

Edited for clarity.

编辑清晰。

#4


FunctionList plugin does not work in Windows environment...

FunctionList插件在Windows环境中不起作用...

NotePad++ will not do code collapse on .asp files...

NotePad ++不会对.asp文件进行代码折叠...

#5


Primalscript does this. It's mostly very nifty, except it's tending towards bloat which is frustrating. It's also pricey, but the speed it adds to development probably justifies the cost over time.

Primalscript这样做。它主要是非常漂亮,除了它倾向于膨胀令人沮丧。它也很昂贵,但它为开发增加的速度可能证明了随着时间的推移成本。