Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bali182/autocomplete-json
Atom autocomplete for JSON files
https://github.com/bali182/autocomplete-json
autocompletion json-schema schema
Last synced: about 7 hours ago
JSON representation
Atom autocomplete for JSON files
- Host: GitHub
- URL: https://github.com/bali182/autocomplete-json
- Owner: bali182
- License: mit
- Created: 2016-01-17T22:14:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-11-27T06:55:47.000Z (about 2 months ago)
- Last Synced: 2024-11-27T07:32:04.580Z (about 2 months ago)
- Topics: autocompletion, json-schema, schema
- Language: JavaScript
- Size: 1.73 MB
- Stars: 61
- Watchers: 2
- Forks: 11
- Open Issues: 15
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# autocomplete-json
** Semantic autocompletion for JSON files**## for dotfiles (.eslintrc, .babelrc, etc)
[autocomplete-plus](https://github.com/atom/autocomplete-plus) (this package is a plugin for autocomplete-plus) has dotfiles disabled by default for autocompletion. To enable them, go to
`File` -> `Settings` -> `Packages` -> `autocomplete-plus` -> `Settings` -> `File Blacklist` and replace the default `.*` with something that you won't need to be
recognized as a filename in files you expect autocomplete, eg.: a `space` (`" "` without quotes). If this still doesn't do the trick, make sure Atom recognizes file type correctly - for me `.eslintrc` was recognized as `YAML` - change it to `JSON` if necessary. If this still doesn't help, please open an issue, or feel free to protest against
blocking dotfiles here: https://github.com/atom/autocomplete-plus/issues/658## how this works
Since 5.0 (it supposed to be 2.0 but I messed up `apm publish`) was released, this is the way this package works:1. Load the available schema "manifest" from [schemastore.org](http://schemastore.org/api/json/catalog.json)
2. Once a `.json` file is opened, and autocompletion is activated (CTRL+Space usually), the file name is matched against the `fileMatch` field in each schema descriptor, and if there's a match, that schema is loaded and used for autocompletion in the given file.
3. There are also some extra features, like autocompletion for files and dependencies. These are available for the most frequently used schemas, like `package.json` and `tsconfig.json`.** The 5.0 release will most likely cause a lots of issues and bugs, please [report](https://github.com/bali182/autocomplete-json/issues) if you find any!**
## features
#### json schema
![JSON schema autocomplete](https://cloud.githubusercontent.com/assets/3879181/12832986/cfc5926e-cb9d-11e5-916e-721790721fc4.gif)
#### npm dependencies
![Autocomplete npm dependencies](https://cloud.githubusercontent.com/assets/3879181/12832997/e4f12630-cb9d-11e5-8cbf-589ad68e4b08.gif)
#### files
![Autocomplete files](https://cloud.githubusercontent.com/assets/3879181/12832990/d6bd7d2a-cb9d-11e5-9f47-88f3efffb2ad.gif)
#### babelrc 6+ plugins and presets
![Autocomplete babelrc plugins and presets](https://cloud.githubusercontent.com/assets/3879181/12832973/c3e5be4c-cb9d-11e5-99e1-50d2f316215e.gif)
## development
Wiki about [development](https://github.com/bali182/autocomplete-json/wiki/Contributing)
## support for your schema
Wiki about [providers](https://github.com/bali182/autocomplete-json/wiki/CreateProviders)