我在文本文件中有一堆标签(例如MY LABEL :),我需要制作标题案例.
我已经知道如何将它们全部制作成大写或大写.
例如:
^([A-Z &#]+:) 至 \L$1
但是,是否有一种简单的基于开关的方式来获得标题案例?
我有一个eslint的问题,它给了我[解析错误关键字导入是保留]这只发生在sublime,在原子编辑器工作得很好.我有意见
.eslintrc.js
module.exports = {
"extends": "airbnb",
"plugins": [
"react"
]
};
Run Code Online (Sandbox Code Playgroud)
的package.json
{
"name": "paint",
"version": "0.0.0",
"description": "paint on the browser",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"paint",
"javascript"
],
"author": "",
"license": "ISC",
"devDependencies": {
"browserify": "^11.2.0",
"eslint": "^2.2.0",
"eslint-config-airbnb": "^2.1.1",
"eslint-plugin-react": "^3.11.2",
"gulp-babel": "^5.2.1",
"gulp-clean": "^0.3.1",
"gulp-stylus": "^2.2.0",
"vinyl-source-stream": "^1.1.0"
}
}
Run Code Online (Sandbox Code Playgroud) 我正在尝试在Sublime Text 3中设置CoffeeScript构建系统,但我一直收到以下错误:
env: node: No such file or directory
[Finished in 0.0s with exit code 127]
[cmd: ['coffee', '-o','/Users/jcourtdemone/Sites/autotempest.com/new_design_sandbox/static/script', '-cw', '/Users/jcourtdemone/Sites/autotempest.com/new_design_sandbox/static/coffee']]
[dir: /Users/jcourtdemone/Sites/autotempest.com/new_design_sandbox/static/coffee]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
Run Code Online (Sandbox Code Playgroud)
我的构建系统看起来像这样:
{
"name": "Coffee - AT",
"cmd": ["coffee","-o","${project_path:${folder}}/static/script","-cw","${project_path:${folder}}/static/coffee"],
"selector": "source.coffee",
"path":"/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/lib/node_modules/coffee-script/bin"
}
Run Code Online (Sandbox Code Playgroud)
有两件事情很奇怪.
1)它说它正在查找存在/usr/bin符号链接的位置coffee.
2)由于(1),我推翻$PATH,包括实际位置coffee是/usr/local/lib/node_modules/coffee-script/bin,但出于某种原因,$PATH没有被覆盖得当,它与默认的坚持$PATH.
注意事项:
i)我已经验证所有路径都是正确的,并通过常规终端命令正常传递.
ii)尝试使用"shell": true构建系统中的变量.
iii)我有另一个Compass这样的构建系统,工作正常.
有人遇到类似的问题或问题吗?有任何想法吗?
我想出了这个正则表达式,找到所有以下开头$并包含_下划线的单词:
\$(\w+)_(\w+)
我基本上是在搜索变量等$var_foo.
如何使用正则表达式组替换内容?
例如,如何删除下划线并使下一个字母大写,如$varFoo?
我希望将以下内容分配给Keybindings.我可以做一个片断这一点,但更希望能CTRL+ >就像在TextMate中.
<%= %>
Run Code Online (Sandbox Code Playgroud)
我需要添加什么,我需要在哪里添加它,或者我在哪里可以找到.
我试图让RubyTest在Sublime Text 2中工作.我遵循Github自述文件中的指令并得到以下错误.有谁知道我怎么解决这个问题?
/bin/sh: rspec: command not found
Run Code Online (Sandbox Code Playgroud) Sublime&from Terminal,打开Sublime Text窗口,但不断收到此消息:
(sublime: 6476): GLib-CRITICAL **; Source ID 1982 was not found when attempting to remove it.
Run Code Online (Sandbox Code Playgroud)
源ID不断变化.使用Ubuntu 14.04.
什么想法可能会发生什么?谢谢!
输入:
boston beach summer figural yellow blue
boston floral flowers still still-life food pink figural
boston horse pink purple house flowers floral figural
Run Code Online (Sandbox Code Playgroud)
预期产量:
"boston beach summer figural yellow blue"
"boston floral flowers still still-life food pink figural"
"boston horse pink purple house flowers floral figural"
Run Code Online (Sandbox Code Playgroud)
实际的输入文件有600多行,我正在寻找一种快速的方法来用引号括起每一行?该方法是否涉及使用多个游标?宏怎么样?
我正在使用Notepad ++,现在我想在Sublime中使用相同的酷功能,但我不知道如何.我想同时编辑多行,如下所示:
但我不想在每一行按Ctrl +单击.我想在第一行单击并在最后一行单击一条垂直线.
我怎么能这样做?
在Sublime Text 3中,如何编辑预先存在的代码段文件?在ST中有没有办法做到这一点?
在撰写本文时,网上的任何地方似乎都没有直截了当的答案.
sublimetext ×10
sublimetext3 ×5
regex ×2
coffeescript ×1
eslint ×1
glib ×1
javascript ×1
macos ×1
oniguruma ×1
parsing ×1
rspec ×1
ruby ×1
string ×1
sublimetext2 ×1
textmate ×1
ubuntu ×1
ubuntu-14.04 ×1