In Sublime Text 3, how can I change the comment character?

十年热恋 提交于 2019-11-30 23:06:53

As mentioned in Enable automatic commenting in Sublime Text for a custom syntax, .tmPreferences files are used to specify what the comment markers are for a syntax.

To edit the comment markers for R:

  1. Install PackageResourceViewer
  2. Open the command palette
  3. Type PRV: O
  4. Select PackageResourceViewer: Open Resource
  5. Select R
  6. Select Comments.tmPreferences
  7. Edit the TM_COMMENT_START value to #' as desired
  8. Save the file
  9. Use the toggle comment functionality on an R file and see that it now uses #' instead of #
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!