百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

CoffeeTags

> 编程语言
开源

类似于 Ctags 的标记生成器,用于 CoffeeScript

174 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

类似于 Ctags 的标记生成器,用于 CoffeeScript

CoffeeTags

Latest version: Gem version

A simple tool for generating CoffeeScript tags (Ctags compatible).

[![Build Status][travis-image]][travis-url] Coverage Status

Watch a quick demo

Huh?

CoffeeTags was created for use with Vim and TagBar plugin, however it accepts most common ctags arguments, therefore the following:

coffeetags -R -f TAGS

will generate standard TAGS file which later can be used with Vim (standard :tag command works as expected)

Requirements

  • ruby 1.8.7 and up

Windows support

Yup, we got it!

Editors supported

  • NeoVim with TagBar
  • Vim with TagBar
  • Sublime Text and CTags plugin

Halp!

Just use coffeetags --help

Ruby Gem

Installation

gem install CoffeeTags (or sudo gem install CoffeeTags)

Usage

$ coffeetags --help

Vim

This can also be used as a vim plugin that will update tag files on save, and support visualization with TagBar. You will still need to install the gem as described above as well as install the plugin to vim. You can install it via:

Install

  • Pathogen
  • git clone https://github.com/lukaszkorecki/CoffeeTags ~/.vim/bundle/CoffeeTags
  • NeoBundle
  • NeoBundle 'lukaszkorecki/CoffeeTags'
  • Vundle
  • Bundle 'lukaszkorecki/CoffeeTags'
  • manual
  • copy all of the files into your ~/.vim directory

Configuration

In you ~/.vimrc you can configure the plugin with:

let g:CoffeeAutoTagDisabled=     " Disables autotaging on save (Default: 0 [false])
let g:CoffeeAutoTagFile=       " Name of the generated tag file (Default: ./tags)
let g:CoffeeAutoTagIncludeVars=  " Includes variables (Default: 0 [false])
let g:CoffeeAutoTagTagRelative=  " Sets file names to the relative path from the tag file location to the tag file location (Default: 1 [true])

Sublime Text

See this issue on SublimeText/Ctags

Config types

CoffeeTags can work in 2 modes:

  • tags only for functions (default)
  • tags for functions and objects containing them

Second mode is activated by:

  • Adding --include-vars to command line arguments
  • Setting let g:CoffeeAutoTagIncludeVars=1 in your ~/.vimrc for vim

TODO

  • squash all bugs

License

MIT [travis-url]: https://travis-ci.org/lukaszkorecki/CoffeeTags [travis-image]: https://travis-ci.org/lukaszkorecki/CoffeeTags.svg?branch=master

Issues· 12 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言