{"id":21648022,"url":"https://github.com/atom-community/atom-ide-code-format","last_synced_at":"2026-03-10T16:18:35.490Z","repository":{"id":37026656,"uuid":"312753512","full_name":"atom-community/atom-ide-code-format","owner":"atom-community","description":"Code formatting for Atom-IDE","archived":false,"fork":false,"pushed_at":"2023-10-15T16:31:54.000Z","size":321,"stargazers_count":4,"open_issues_count":6,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-22T05:03:51.045Z","etag":null,"topics":["atom","atom-ide","atom-package","beautify","formatting","prettier"],"latest_commit_sha":null,"homepage":"https://atom.io/packages/atom-ide-code-format","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atom-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-11-14T05:36:00.000Z","updated_at":"2023-01-12T06:42:25.000Z","dependencies_parsed_at":"2023-01-20T10:43:21.447Z","dependency_job_id":"a888c36b-80ff-4428-a5f2-577ebad8aec9","html_url":"https://github.com/atom-community/atom-ide-code-format","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/atom-community/atom-ide-code-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom-community%2Fatom-ide-code-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom-community%2Fatom-ide-code-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom-community%2Fatom-ide-code-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom-community%2Fatom-ide-code-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atom-community","download_url":"https://codeload.github.com/atom-community/atom-ide-code-format/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom-community%2Fatom-ide-code-format/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30342165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atom","atom-ide","atom-package","beautify","formatting","prettier"],"created_at":"2024-11-25T06:52:58.186Z","updated_at":"2026-03-10T16:18:35.463Z","avatar_url":"https://github.com/atom-community.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Format\n\n## Usage\n\n- By default the currently open file is formatted on save.\n\n- Format a selection of code using the `code-format:format-code` (`CTRL+SHIFT+C`) command.\n  (Also accessible via context menu, or \"Edit \u003e Text \u003e Format Code\"). When no selection is provided, the entire file is formatted.\n\n- For the languages that support on type formatting, the package is able to format as you type in the editor. You should enable this from the settings of this package (disabled by default).\n\n![Code Format](https://raw.githubusercontent.com/facebookarchive/atom-ide-ui/master/docs/images/code-format.gif)\n\n## Developer Service API\n\nCode Format also provides APIs to:\n\n- format code on save (after you press save but before writing to disk).\n- format code as you type\n\nYou can enable format-on-save using plain range/file providers from the atom-ide-code-format's settings\n\nProvide code format [Atom services](http://flight-manual.atom.io/behind-atom/sections/interacting-with-other-packages-via-services/) by adding one or more of these to your `package.json`:\n(Only the ones that you want to use; you don't need all of them!)\n\n```json\n\"providedServices\": {\n  \"code-format.range\": {\n    \"versions\": {\n      \"0.1.0\": \"provideRangeCodeFormat\"\n    }\n  },\n  \"code-format.file\": {\n    \"versions\": {\n      \"0.1.0\": \"provideFileCodeFormat\"\n    }\n  },\n  \"code-format.onType\": {\n    \"versions\": {\n      \"0.1.0\": \"provideOnTypeCodeFormat\"\n    }\n  },\n  \"code-format.onSave\": {\n    \"versions\": {\n      \"0.1.0\": \"provideOnSaveCodeFormat\"\n    }\n  }\n}\n```\n\nThen, in your package entry point:\n\n```ts\nexport function provideRangeCodeFormat(): RangeCodeFormatProvider {}\nexport function provideFileCodeFormat(): FileCodeFormatProvider {}\nexport function provideOnTypeCodeFormat(): OnTypeCodeFormatProvider {}\nexport function provideOnSaveCodeFormat(): OnSaveCodeFormatProvider {}\n```\n\nThe various provider types are described in\n[`atom-ide-code-format/lib/types.js`](./src/types.ts).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatom-community%2Fatom-ide-code-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatom-community%2Fatom-ide-code-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatom-community%2Fatom-ide-code-format/lists"}