ctrl+shift+p filters: :st2 :st3 :win :osx :linux
浏览

CSS 注释

作者: brenopolanski 全部

Sublime Text 的 CSS 注释片段

详情

  • 2019.12.18.18.25.43
  • github.​com
  • github.​com
  • 5 年前
  • 10 分钟前
  • 10 年前

安装次数

  • 总数 25K
  • Win 19K
  • Mac 5K
  • Linux 2K
Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23
Windows 1 0 1 0 1 2 0 0 1 0 1 1 1 1 0 1 0 0 1 0 2 1 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 2 0 0 1 0 0
Mac 1 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1

README

源码
raw.​githubusercontent.​com

CSS 注释片段 构建状态

CSS Comments snippets

CSS 注释片段用于 Sublime Text

良好的注释代码非常重要。花时间描述组件、它们的工作方式、它们的限制以及它们的构建方式。不要让团队成员猜测不常见或不太明显的代码的目的。

注释风格应在单一代码库中保持简单和一致。

要通过 Package Control 安装,搜索 CSS Comments。如果您还没有在 Sublime Text 中安装 Package Control,请获取它。如果坚持不安装,您可以下载包并将其手动放入您的 Pacakages 目录中。它应该可以工作,但不会自动更新。

片段

支持 CSS/LESS/Sass/SCSS/Stylus & PHP。

要触发一个注释,只需将 c- 后跟其名称即可

image snippets

基本注释

触发器: c-basic⇥

/* Basic comment */

长注释

触发器: c-long⇥

/*
 * Long comment
 */

段落注释

触发器: c-section⇥

/* ==========================================================================
   Section comment block
   ========================================================================== */

子段落注释

触发器: c-subsection⇥

/* Sub-section comment block
   ========================================================================== */

带 TODO 的多个注释

触发器: c-multi⇥

/**
 * Short description using Doxygen-style comment format
 *
 * The first sentence of the long description starts here and continues on this
 * line for a while finally concluding here at the end of this paragraph.
 *
 * The long description is ideal for more detailed explanations and
 * documentation. It can include example HTML, URLs, or any other information
 * that is deemed necessary or useful.
 *
 * @tag This is a tag named 'tag'
 *
 * TODO: This is a todo statement that describes an atomic task to be completed
 *   at a later date. It wraps after 80 characters and following lines are
 *   indented by 2 spaces.
 */

总结注释

触发器: c-summary⇥

/**
 * Description: Short description.
 * Version: 1.0.0
 * Last update: YYYY/MM/DD
 * Author: User Name <[email protected]>
 *
 * Summary:
 *
 *    0. ELEMENT
 *        - 0.1. TYPE ELEMENT
 *        - 0.2. TYPE ELEMENT
 *    1. ELEMENT
 *        - 1.1. TYPE ELEMENT
 *        - 1.2. TYPE ELEMENT
 */

/* ==========================================================================
   0. ELEMENT
   ========================================================================== */

/* 0.1. TYPE ELEMENT
   ========================================================================== */

/* 0.2. TYPE ELEMENT
   ========================================================================== */

贡献

  1. 分支它!
  2. 创建您的功能分支: git checkout -b my-new-feature
  3. 提交您的更改: git commit -m "增加一些功能"
  4. 推送到分支: git push origin my-new-feature
  5. 提交拉取请求 :)

现在英语是通用语言,所以请不要使用其他语言创建或评论问题。

历史记录

有关详细更改日志,请参阅 发行版

致谢

注释格式基于Nicolas Gallagher的 idiomatic-css

许可证

MIT许可证 © Breno Polanski