個人 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.