This repo contains a useful set of IntelliJ settings for use in http4k projects.
To add the repository to IntelliJ. The process requires temporarily disabling Settings Sync:
- Disable
IntelliJ IDEA -> Settings -> Settings Sync
. - Open
IntelliJ IDEA -> Settings -> Plugins
and search for and installSettings Repository
. Restart. - Open
IntelliJ IDEA -> Settings -> Tools -> Settings Repository
- Hit
+
and add this repo:https://github.com/http4k/intellij-settings
- Reenable
IntelliJ IDEA -> Settings -> Settings Sync
There are basically 4 types of template:
to generate | shortcut + tab | result | example |
---|---|---|---|
HttpHandler | hh |
HttpHandler returning OK | { req: Request -> Response(Status.OK) } |
Filter | fil |
Empty filter | Filter { next -> { next(it) } } |
Request | get etc |
Request for verb | Request(Method.GET, "<URL>") |
Response | 200 etc |
Response with code | Response(Status.OK) |