My company gave me VS2008 for web development in C#/ASP.NET. I do a lot of Perl programming too and I'd like to start using VS for that so I can have a consistent work environment... but am having real trouble figuring out how to do so.
我的公司给了我VS2008用于C#/ ASP.NET的Web开发。我也做了很多Perl编程,我想开始使用VS,因此我可以拥有一致的工作环境......但是我确实很难找到如何做到这一点。
VS has a lot of nice features but seems pretty hostile towards languages it doesn't support out of the box. Is it really or do I just not "get" the VS way of doing things?
VS有许多不错的功能,但似乎对它不支持开箱即用的语言非常敌视。是真的还是我不是“得到”VS的做事方式?
I usually write Perl scripts using TextPad and the features I'm used to having are pretty basic.
我通常使用TextPad编写Perl脚本,而我以前使用的功能非常基本。
- line numbering
- soft line wrapping
- syntax highlighting
- auto-indenting in/out after open/close brace
- auto-indenting to the same starting point as the previous line
- brace matching
- run scripts from within the editor
- capture script output in an editor pane
- dbl-click on error message jumps to the line where the error occurred
软线包装
打开/关闭括号后自动缩进/缩小
自动缩进到与上一行相同的起点
从编辑器中运行脚本
在编辑器窗格中捕获脚本输出
dbl-单击错误消息跳转到发生错误的行
行编号软线包装语法在打开/关闭大括号后自动缩进/自动缩进自动缩进与前一行大括号匹配在编辑器窗格中编辑器捕获脚本输出中运行脚本dbl-单击错误消息跳转到发生错误的行
How do I at least get the above features in VS2008?
我如何在VS2008中至少获得上述功能?
How can I get advanced features like:
如何获得以下高级功能:
- code folding
- intellisense
- code-completion
- integrated perldoc
- VS-style debugging and code tracing
- on-the-fly error detection
- etc
VS风格的调试和代码跟踪
即时错误检测
(I see one possibly relevant online discussion in an ASPN mod-perl mailing list , but don't understand what, if anything, it means to a guy like me.)
(我在ASPN mod-perl邮件列表中看到一个可能相关的在线讨论,但是不明白,对于像我这样的人来说,这意味着什么。)
-- added --
I'm aware of other editors and IDEs out there: vi, perlmode-emacs, Komodo, E, TextMate, etc. This question is not about what other editor or IDE I should try.
While I appreciate your suggestions, I'd rather read them in a thread like "What editor should I use for Perl" and not "How do I set up VS to accomplish my goal"
- 添加 - 我知道其他编辑器和IDE:vi,perlmode-emacs,Komodo,E,TextMate等。这个问题与我应该尝试的其他编辑器或IDE无关。虽然我很感激你的建议,但我宁愿在一个帖子中阅读它们,比如“我应该为Perl使用什么编辑器”,而不是“如何设置VS来实现我的目标”
-- added -- After doing some additional research I've concluded that you just can't get there from here. The only option would be to write my own language plugin. Considering the time commitment to make something usable I think I'm just better off using a different editor. Thanks anyway guys
- 补充 - 经过一些额外的研究后,我得出结论,你无法从这里到达那里。唯一的选择是编写我自己的语言插件。考虑到使某些东西可用的时间,我认为我最好使用不同的编辑器。无论如何,谢谢你们
5 个解决方案
#1
4
I use VS2008 for .NET stuff, but I'm completely sold on Komodo for Perl editing. The full Komodo IDE is worth the money if this is your job and like/need to use a debugger, but even the free Komodo Edit is a terrific Perl editor.
我使用VS2008 for .NET的东西,但我完全在Komodo上销售用于Perl编辑。如果这是你的工作并喜欢/需要使用调试器,那么完整的Komodo IDE是值得的,但即使是免费的Komodo Edit也是一个了不起的Perl编辑器。
#2
1
I agree, I really like Komodo as well for an IDE. Its solid and easy to use. I tend to use Vim a lot instead of an IDE, but that's just personal preference.
我同意,我真的很喜欢Komodo的IDE。它坚固且易于使用。我倾向于使用Vim而不是IDE,但这只是个人偏好。
Check out Komodo though, its worth the look.
看看Komodo,它值得一看。
Regards,
Jeff
#3
0
I heard rumors of there being a .NET implementation of Perl, called IronPerl, but except for that, I don't think there is any sort of plugin for Visual Studio. I would suggest just using one of the many tools out there that are designed for Perl.
我听说有传言称有一个名为IronPerl的Perl的.NET实现,但除此之外,我认为Visual Studio没有任何插件。我建议只使用为Perl设计的众多工具之一。
#4
0
There was something called "Visual Perl" wich worked with Visual Studio.net 2002 and was needed Perl Dev kit tool, but I don't how comatible is with VS.net 2010.
有一个名为“Visual Perl”的东西,它与Visual Studio.net 2002一起工作,需要Perl Dev kit工具,但我不知道VS.net 2010是如何可以兼容的。
#5
0
Looks like you can do this via the Managed Package Framework if you are willing to put the time in.
如果您愿意花时间,可以通过托管包框架执行此操作。
You can decrease the amount of work required by just setting up syntax coloring
您可以通过设置语法着色来减少所需的工作量
#1
4
I use VS2008 for .NET stuff, but I'm completely sold on Komodo for Perl editing. The full Komodo IDE is worth the money if this is your job and like/need to use a debugger, but even the free Komodo Edit is a terrific Perl editor.
我使用VS2008 for .NET的东西,但我完全在Komodo上销售用于Perl编辑。如果这是你的工作并喜欢/需要使用调试器,那么完整的Komodo IDE是值得的,但即使是免费的Komodo Edit也是一个了不起的Perl编辑器。
#2
1
I agree, I really like Komodo as well for an IDE. Its solid and easy to use. I tend to use Vim a lot instead of an IDE, but that's just personal preference.
我同意,我真的很喜欢Komodo的IDE。它坚固且易于使用。我倾向于使用Vim而不是IDE,但这只是个人偏好。
Check out Komodo though, its worth the look.
看看Komodo,它值得一看。
Regards,
Jeff
#3
0
I heard rumors of there being a .NET implementation of Perl, called IronPerl, but except for that, I don't think there is any sort of plugin for Visual Studio. I would suggest just using one of the many tools out there that are designed for Perl.
我听说有传言称有一个名为IronPerl的Perl的.NET实现,但除此之外,我认为Visual Studio没有任何插件。我建议只使用为Perl设计的众多工具之一。
#4
0
There was something called "Visual Perl" wich worked with Visual Studio.net 2002 and was needed Perl Dev kit tool, but I don't how comatible is with VS.net 2010.
有一个名为“Visual Perl”的东西,它与Visual Studio.net 2002一起工作,需要Perl Dev kit工具,但我不知道VS.net 2010是如何可以兼容的。
#5
0
Looks like you can do this via the Managed Package Framework if you are willing to put the time in.
如果您愿意花时间,可以通过托管包框架执行此操作。
You can decrease the amount of work required by just setting up syntax coloring
您可以通过设置语法着色来减少所需的工作量