Microchip
直播中

李缬呓

7年用户 177经验值
私信 关注
[问答]

是否有可以在编辑器中显示的标尺?

我在MPLAB-X中编写了许多汇编代码,我发现自己一遍又一遍地重新排列其他工程师代码的部分,因为它们的标签太远或不够远。大多数时候,源代码格式选项不适用于汇编程序源,所以我总是需要手工完成。真正有用的是在编辑器中有一个标尺,指示(用户可选)选项卡的位置非常类似Word。如果已经没有一个(我看不出有任何选项可以显示一个),我可以向Microchip建议,在下一个更新中添加这一点真的很有用吗?如果编辑器还可以在文本中显示制表位置的垂直线,那就太好了!考虑到

以上来自于百度翻译


      以下为原文

    I write a lot of assembler code in MPLAB-X and I find myself re-formatting sections of other engineers code over and over because they have tabbed too far or not far enough.  Most of the time the source-formatting option doesn't work with assembler source so I always have to do this by hand.
What would be really useful would be to have a ruler in the editor that indicates (user selectable) tab positions much like Word does.  If there is not one already (I cannot see any options to display one) could I suggest to Microchip that this would be a really useful thing to add in the next update?  If the editor could also display vertical lines in the text where the tab positions are, that would be excellent!


Regards
Tim

回帖(11)

唐红菊

2018-12-10 16:39:54
不用手工做苦工,为什么不试试漂亮的打印工具呢?如果你有一个明确的公司风格指南,也有风格的LTENS,你可以直接挂钩到你的版本控制系统,拒绝(或至少抗议)提交不符合。

以上来自于百度翻译


      以下为原文

    Instead of doing drudgework by hand, why not try a pretty-printing tool? If you have a clearly defined company style guide, there are also style linters you could hook up directly to your version control system to reject (or at least protest about) commits that are not conforming.
举报

刘颖

2018-12-10 16:58:34
如果MPLAB-X中的格式化程序工作,但Ho HO则更好。我找不到一个像样的外部美化工具,所以我自己编写了,专门为MPASM汇编程序编写的。

以上来自于百度翻译


      以下为原文

    It would be nicer if the formatter in MPLAB-X worked, but hey ho. I cannot find a decent external prettying tool so I wrote my own, specifically for the MPASM assembler.
举报

李皓圳

2018-12-10 17:16:04
你可以滥用红色右边线,至少有一条视觉引导线。你可以改变这一行的位置:菜单“工具”,条目“选项”,类别“编辑器”,标签“格式化”,在下拉“语言:”选择“所有语言”,在输入“右边空白”改变值。

以上来自于百度翻译


      以下为原文

    You could abuse the red right margin line to have at least one visual guide line. 
 
You can change the position of that line in: menu "Tools", entry "Options", category "Editor", tab "Formatting", at dropdown "Language:" select "All Languages", at input "Right Margin" change the value.
举报

李维兴

2018-12-10 17:26:34
第二个特性请求。它使我想起了我曾经使用过的FORTRAN编辑器。&编辑& Gt;因为制表符的停止通常被固定到一定数量的空间,比如4或8。垂直线应该是用户选择能够为每个制表位停止。

以上来自于百度翻译


      以下为原文

   
I second that feature request.  It reminds me of a Fortran editor I used once.
 
As the tab stops are usually fixed to a certain number of spaces, like 4 or 8. The vertical lines should be user select-able for each tab stop.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分