完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在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个回答
|
|
不用手工做苦工,为什么不试试漂亮的打印工具呢?如果你有一个明确的公司风格指南,也有风格的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. |
|
|
|
如果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. |
|
|
|
你可以滥用红色右边线,至少有一条视觉引导线。你可以改变这一行的位置:菜单“工具”,条目“选项”,类别“编辑器”,标签“格式化”,在下拉“语言:”选择“所有语言”,在输入“右边空白”改变值。
以上来自于百度翻译 以下为原文 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. |
|
|
|
第二个特性请求。它使我想起了我曾经使用过的FORTRAN编辑器。&编辑& Gt;因为制表符的停止通常被固定到一定数量的空间,比如4或8。垂直线应该是用户选择能够为每个制表位停止。
以上来自于百度翻译 以下为原文 I second that feature request. It reminds me of a Fortran editor I used once. |
|
|
|
您可以使用记事本++来显示缩进指南:查看菜单和gt;显示符号& gt;显示缩进指南。
以上来自于百度翻译 以下为原文 You could use Notepad++ to show indent guides: View Menu > Show Symbol > Show Indent Guides. |
|
|
|
但是MPLABX已经显示了缩进指南。灰色垂直线,每4个字符,在空白线上的任何字符的左边。它在C和ASM中。就像记事本+ +,除了记事本+ +也行它们只包含空间或标签。AH-MPLAB菜单-查看…显示缩进引导线。
以上来自于百度翻译 以下为原文 But mplabx already does show indent guides. Grey vertical lines, every 4 characters, in the whitespace to the left of any characters on a line. Does it in C and in asm. Just like notepad++, except notepad++ also does them on lines containing only spaces or tabs as well. Ah - mplab menu - view.. show indent guide lines. |
|
|
|
但是MPLABX已经显示了缩进指南。灰色垂直线,每4个字符,在空白线上的任何字符的左边。它在C和ASM中吗?啊-MPLAB菜单-查看…显示缩进的引导线,是的,谢谢你指出,以前从未注意过!但是,不是我所做的,因为它只适用于行上的第一个字符,所以我确实需要在一行中的文本中显示标记,以显示制表位,以及用户可定义的制表位位置。
以上来自于百度翻译 以下为原文 But mplabx already does show indent guides. Grey vertical lines, every 4 characters, in the whitespace to the left of any characters on a line. Does it in C and in asm. Ah - mplab menu - view.. show indent guide lines. Yes it does, thanks for pointing that out, never noticed it before! However, not quite what I was after as it only works up to the first character on a line, I really need marks within text on a line to show tab-stops, and user-definable tab-stop positions. |
|
|
|
也许你可以重新教育其他工程师遵循你的风格指南?
以上来自于百度翻译 以下为原文 Maybe you could re educate the other engineers to follow your style guide ? |
|
|
|
很容易写一个小的实用程序,这将美化文件根据您的标准。您还可以做其他好的事情,例如删除尾随空间、转换制表符到空格等。
以上来自于百度翻译 以下为原文 It is very easy to write a little utility which would prettify the file according to your standards. You can also do other good things, such as removing trailing spaces, convert tabs into spaces etc. |
|
|
|
你是对的,我甚至没有注意到他们,事实上我也把它们打开了。走开!
以上来自于百度翻译 以下为原文 @domble - You're right, i didn't even notice them when in fact I have them turned on as well. Go figure! |
|
|
|
诺斯盖伊,是的,这就是我最后要做的,谢谢。
以上来自于百度翻译 以下为原文 NorthGuy, yes that 's what I ended up doing, thanks. |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3209 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2260 浏览 5 评论
779浏览 1评论
672浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
598浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
682浏览 0评论
579浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 04:10 , Processed in 1.277256 second(s), Total 67, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号