textmate 主题

Naturally, you want your lint tools integrated with your text editor. Here's what I did to integrate Stylelint (hello!) with TextMate.

自然,您希望将皮棉工具与文本编辑器集成在一起。 这是我将Stylelint ( hello! )与TextMate集成在一起的工作。

新捆绑 (New Bundle)

In TextMate... menu Bundles / Edit Bundles.... I didn't see a way to add a new Command, so I right-clicked an existing one (one with a C icon for Command), selected Find in Finder and just duplicated it. This way it appears in the bundle editor and you can tweak.. To create a new command, go File / New and choose "Command" in the prompt.

在TextMate ...菜单Bundles / Edit Bundles... 。 我没有找到添加新命令的方法,因此我右键单击了一个现有命令(一个带有C图标的Command),选择了Find in Finder并进行了复制。 这样,它就会出现在包编辑器中,您可以进行调整。 。 要创建新命令,请转到“ File / New ”,然后在提示中选择“命令”。

路径正确 (PATH is in order)

You need to have the path to node and to stylelint (likely the same) in your TextMate path preferences (menu TextMate / Preferences / Variables / PATH). To tell where node is, type `which node`.

您需要在TextMate路径首选项(菜单TextMate / Preferences / Variables / PATH)中具有指向nodestylelint的路径(可能相同)。 要确定节点在哪里,请键入“哪个节点”。

全局配置 (Global config)

Stylelint needs a config. See last post on how to setup a global one.

Stylelint需要配置。 请参阅最后一篇文章,了解如何设置全局的。

设置新命令 (Setting up the new command)

Here's a screenshot of my setup:

这是我的设置的屏幕截图:

Basically run Stylelint when pressing CMD+L. Show the results in a tooltip.

按下CMD + L时基本上运行Stylelint。 在工具提示中显示结果。

And some magic to find the first error to move the cursor there:

还有一些魔术可以找到将光标移到那里的第一个错误:

#!/usr/bin/env ruby18
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
error = `stylelint "$TM_FILEPATH"`
if error.empty?
puts 'No lint errors'
else
puts error
TextMate.go_to :line => $1, :column => $2 if error =~ / (\d+):(\d+)/
end

在行动(In action)

And here is the whole integration in action. The lint finds an error and helpfully moves the cursor there.

这是整个整合的过程。 棉绒发现错误,并有帮助地将光标移到那里。

Tell your friends about this post on Facebook and Twitter

在Facebook和Twitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/stylelint-textmate-integration/

textmate 主题

textmate 主题_Stylelint + TextMate集成相关推荐

  1. textmate 主题_更漂亮的TextMate

    textmate 主题 Prettier is a code formatter, great for following consistent coding conventions with 0 e ...

  2. RiPro8.6美化包-huzao-child v3.0子主题简洁大气集成后台

    RiPro8.6美化包-huzao-child v3.0子主题简洁大气集成后台 RiPro子主题huzao-child,在之前也有给大家分享过2.0的版本,今天再给大家分享一下目前最新版的huzao- ...

  3. 大数据-数据仓库(Data Warehouse):概述【面向主题的、集成的、相对稳定的、反映历史变化的数据集合;是一个数据处理过程(清洗、转义、分类、重组、合并、拆分、统计等)】

    一.数据仓库介绍 1.数据仓库概念 数据仓库概念创始人在<建立数据仓库>一书中对数据仓库的定义是:数据仓库(Data Warehouse)是一个面向主题的(Subject Oriented ...

  4. 主题:spring集成quartz,出现2次重复调用的问题

    在项目中使用了quartz的任务调度,在本地测试的时候没有问题,只会调用1次部署到服务器上后,发现同一个任务,在相同的时间被调用了2次.本地环境 windowsXP ,spring2.5.1, sun ...

  5. Atom飞行手册翻译: 3.9 从Textmate中转换

    从Textmate中转换 可能在Textmate中有你喜欢或者使用过的主题和语法,并且你想要把它们转换到Atom中.如果是这样的话,你很幸运,因为有很多工具可以用来转换它们. 转换 TextMate ...

  6. 配置学习Go的编辑器:配置TextMate

    TextMate是苹果电脑上的著名的文本编辑器,有非常好用的一些插件,fei'chang我选用了TextMate. 1.Textmate官网:http://macromates.com/ Textma ...

  7. hexo 博客next主题集成gitment或者gitalk评论系统

    原文链接hexo 博客next主题集成gitment或者gitalk评论系统 前言 之前使用多说,多说挂了,用网易跟帖代替,网易跟帖又没了.前段时间用来必力,感觉还行,但总归不踏实.后面发现有gitm ...

  8. 解决TextMate中文问题

    这两天花了40美刀买了心仪已久的TextMate的License, 程序装好后第一件事就是解决textmate中,中文显示的问题.解决后效果如下图所示: 如果你足够熟练,直接跳过下面内容,下载附件中的 ...

  9. php mate,textmate 命令行_使用PHP在TextMate中创建命令

    textmate 命令行_使用PHP在TextMate中创建命令 textmate 命令行_使用PHP在TextMate中创建命令 textmate 命令行 TextMate is the best ...

最新文章

  1. Java反射在整个程序运行中的位置
  2. python中plotly.express中线条图,Plotly在Python中表达的意外行
  3. python list(str(x:str)) -> List
  4. Hyper-v Server 2012 Release Candidate 部署体验
  5. Hadoop Hive概念学习系列之HDFS、Hive、MySQL、Sqoop之间的数据导入导出(强烈建议去看)(十八)...
  6. NameError: name 'words' is not defined
  7. java 正则表达式 unicode_java正则表达式中的POSIX 字符类和Unicode 块和类别的类介绍...
  8. SPSS-PROCESS插件的使用
  9. 自然人税收管理系统服务器,【轻松学个税申报】自然人税收管理系统客户端操作...
  10. c语言省略号电脑键盘怎么打,省略号的快捷键怎么打【图解】
  11. 水声网络架构及关键问题笔记
  12. nginx: [emerg] unexpected “}”
  13. WordPress总裁CeoMax主题模板源码3.9.1无需授权
  14. 如何制作自己的系统镜像以及备份管理
  15. [国家集训队2012]电子对撞机nbsp;解题…
  16. 牛津大学人类未来研究所:万字长文谈AI新职场方向-政策研究
  17. 程序运行时报错 :0xC0000005: 写入位置 0x000000xx 时发生访问冲突的原因
  18. Unity 3D俄罗斯方块
  19. 遭遇修改系统时间、使用映像劫持的xibgptd.exe,netdde32.exe等2
  20. 新媒体人打开 ChatGPT 的正确姿势

热门文章

  1. 微机原理是微型计算机与接口技术吗,微机原理与接口技术
  2. 论文参考文献引用和自动更新方法
  3. idea java找不到到符号,找不到包
  4. 净利润同比下降20%,宜人贷能熬过P2P寒冬吗?
  5. iOS小技能:查看大图浏览器(图片支持滑动切换)
  6. Solr 16 - Solr中添加、更新、删除数据的几种方式 (在URL上或Web页面中操作)
  7. matlab直接扩频序列,直接序列扩频系统matlab仿真.doc
  8. html输出屏幕,从HTML屏幕打印动态页眉或页脚
  9. Java实时显示日历,实现日历
  10. (脑肿瘤分割笔记:七十一):A Robust Volumetric Transformer for Accurate3D Tumor Segmentation