TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Custom Sublime Text Build Systems For Popular Tools And Languages

99 点作者 jemeshsu将近 13 年前

4 条评论

simonsarris将近 13 年前
This article gives a good overview of how to use the build system in Sublime, though I always feel slightly pea-brained when articles like this pop up because they omit the very simple cases and that seems to be all I use.<p>If you use Sublime Text and just want a build system to save and start HTML pages when writing HTML and JavaScript, you can simply do:<p>Tools -&#62; Build System -&#62; New build system, write:<p><pre><code> { // or add the chrome path to the environment "cmd": ["C:/Users/ThyUsername/AppData/Local/Google/Chrome/Application/chrome.exe", "$file"], "selector": "html" } </code></pre> and save. CTRL+B then saves your html file and opens it in Chrome. I think on a Mac you'd do:<p><pre><code> { "cmd": ["open", "-a", "Safari", "$file"], "selector": "html" }</code></pre>
评论 #4400669 未加载
评论 #4400152 未加载
vailripper将近 13 年前
Initially, I used the sublime build system for doing grunt builds as well. However, I've migrated towards using 'grunt watch' instead. Running your build on every file modification is pretty great. Combined with the SublimeLinter package, it's about as painless as I've experienced in web dev.
killahpriest将近 13 年前
FYI, instead of creating separate .sh files for builds that need multiple lines, you could just separate them by passing &#38;&#38; as a parameter.<p>E.g., for Cordova iOS projects I use:<p><pre><code> "cmd": ["cordova/debug", "&#38;&#38;", "cordova/emulate"]</code></pre>
amirmansour将近 13 年前
How about some love for Scala?
评论 #4400378 未加载