个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证ColdBox Platform Sublime IDE Package
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Code completions and snippets for the ColdBox Platform and TestBox on Sublime Text 4.
Using ColdBox 7 or TestBox 6? Use the v3.2.x tags of this package.
Completions and snippets that arrived in a specific release are labeled with the version in the completion popup, for example (ColdBox:Router - 8.2+) or (TestBox:Expectation - 7.1+).
1. Open the Command Palette (Cmd/Ctrl + Shift + P)
2. Select Package Control: Install Package
3. Search for ColdBox and install it
Clone the repository into your Sublime Text Packages directory (use Preferences > Browse Packages... to find it).查看完整 README ↗Code completions and snippets for the ColdBox Platform and TestBox on Sublime Text 4.
| Library | Supported Versions | Notes |
|---|---|---|
| ColdBox | 8.0.0 and beyond | Includes WireBox, CacheBox and LogBox |
| TestBox | 7.0.0 and beyond | Includes the 7.1 expectation and assertion additions |
| Sublime Text | 4 |
| Language / Engine | Status |
|---|---|
| BoxLang | Preferred |
| Lucee | Supported |
| Adobe ColdFusion | Supported |
Using ColdBox 7 or TestBox 6? Use the
v3.2.xtags of this package.
Completions and snippets that arrived in a specific release are labeled with the version in the completion popup, for example (ColdBox:Router - 8.2+) or (TestBox:Expectation - 7.1+).
Cmd/Ctrl + Shift + P)Clone the repository into your Sublime Text Packages directory (use Preferences > Browse Packages... to find it).
# macOS
cd ~/Library/Application\ Support/Sublime\ Text/Packages/
# Linux
cd ~/.config/sublime-text/Packages/
# Windows (PowerShell)
cd "$env:APPDATA\Sublime Text\Packages"
git clone https://github.com/ColdBox/coldbox-sublime.git coldbox
Completions for the major ColdBox, WireBox, CacheBox, LogBox and TestBox objects. Type the scope name and a dot to see its methods.
| Scope | Class |
|---|---|
event | coldbox.system.web.context.RequestContext |
controller | coldbox.system.web.Controller |
flash | coldbox.system.web.flash.AbstractFlashScope |
html | coldbox.system.modules.HTMLHelper.models.HTMLHelper |
binder | coldbox.system.ioc.config.Binder |
wirebox | coldbox.system.ioc.Injector |
cachebox | coldbox.system.cache.CacheFactory |
logbox | coldbox.system.logging.LogBox |
log | coldbox.system.logging.Logger |
assert | testbox.system.Assertion |
Also included:
config/Router): route(), resources(), apiResources(), group(), the verb helpers (get(), post(), put(), patch(), delete()), .to(), .toHandler(), .toAction(), .toView(), .toResponse(), .toRedirect(), .as(), .withCondition(), .withSSL(), .withVerbs(), .withNamespace(), .withDomain(), .constraints(), .end() and more.middleware(), middlewareGroup(), .withoutMiddleware(), .withCache(), .toSSE(), .toAi(), .toMCP(), .toAiGateway(), plus event.sse(), event.etag(), event.lastModified() and event.cacheControl()expect() matcher, including the 7.1 additions: toBeTruthy, toBeFalsy, toHaveSize, toThrowMatching, toIncludeAll/Any/None, Set matchers, Range matchers and data path matchers (toHavePath, toHavePathValue, ...)expectAll(), expectAny(), expectSome(), expectNone(), withContext(), assertAll(), assert.all()dryRun() to discover specs without executing themType the trigger and press Tab.
| Trigger | Creates |
|---|---|
config | ColdBox configuration file |
router | Router file |
handler | Event handler |
resthandler | REST handler |
resourcehandler | Resource handler |
apiResourceHandler | API resource handler |
model | Model object |
interceptor | Interceptor |
point | Interception point method |
cachebox-config | CacheBox configuration file |
box | box.json descriptor |
| Trigger | BoxLang | CFML |
|---|---|---|
class | Class | |
cfc | Script component | |
function | Function | Script function |
prop | Property | Script property |
inject | WireBox property injection | WireBox property injection |
| Trigger | Creates |
|---|---|
action | Handler action |
pre / post | preHandler() / postHandler() |
preaction / postaction | preXXX() / postXXX() |
around | aroundHandler() |
onerror | onError() |
onhttp | onInvalidHTTPMethod() |
onma | onMissingAction() |
| Trigger | Creates |
|---|---|
binder | WireBox configuration binder |
inject | Property injection |
setter | Setter injection |
provider | Provider method |
aspect | AOP aspect |
| Trigger | Creates |
|---|---|
entity | ORM entity |
active | Active entity |
ormservice | Base ORM service |
virtualservice | Virtual entity service |
o2m / m2o / m2m | Relationship properties |
| Trigger | Creates |
|---|---|
bdd / unit | BDD / xUnit test bundle |
describe, it, feature, story, given, when, then | BDD blocks (add Full for all arguments) |
beforeall, afterall, before, after, around | BDD life-cycle closures |
beforetests, aftertests, setup, teardown | xUnit life-cycle methods |
expect, expectTrue, expectFalse, expectToThrow | Expectations |
expectall, expectany 7.1+, expectsome 7.1+, expectnone 7.1+ | Collection expectations |
withcontext 7.1+ | Expectation with failure context |
expectpath 7.1+ | Data path expectation |
assert, assertall 7.1+ | Assertions |
dryrun 7.0+ | Discover specs without running them |
debug, debugduplicate, console | Debug output |
| Trigger | Creates |
|---|---|
integrationTest | Integration BDD test |
testaction | Integration spec for an event action |
interceptorTest | Interceptor test |
modelTest | Model test |
Issues and pull requests are welcome at https://github.com/ColdBox/coldbox-sublime. See the changelog for release history.