Left justified comments for ESS

烂漫一生 提交于 2019-12-10 21:22:46

问题


When I use C-M-\ (with emacs and ESS) to format my R code, it right justifies my comments. For example, it changes:

#This is a comment
x=5

to

                       #This is a comment
x=5

How do I stop my comments being right-justified?


回答1:


One solution is to use ##. By convention, that one doesn't move.



来源:https://stackoverflow.com/questions/3622048/left-justified-comments-for-ess

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!