Skip to content

Commit

Permalink
Set auto parameter hint popups to false
Browse files Browse the repository at this point in the history
Fixes #574
  • Loading branch information
PEZ committed Mar 6, 2020
1 parent cc73757 commit ff9e45a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changes to Calva.
## [Unreleased]
- [Add cljfmt indent rules](https://github.com/BetterThanTomorrow/calva/issues/80)
- Fix so that Calva treats symbol containing the quote character correctly.
- [Fix: Parameter hints popup should be off by default](https://github.com/BetterThanTomorrow/calva/issues/574)

## [2.0.79] - 2020-03-01
- Use scope `variable.other.constant` for keywords, making them highlight nicely
Expand Down
26 changes: 26 additions & 0 deletions docs/readthedocs/source/customizing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,32 @@ Tip For VS Code newcomers: The search box in **Settings** is your friend. Also,
},
```

## Clojure Defaults

Calva sets some VS Code settings for all Clojure files. Some of these are needed for Calva to function correctly, which should not be tampered with unless you really know what you are doing, and some of them are for convenience defaults. If you add a setting to your `settings.json` and accept the snippet help you get when you type `"[clojure]"`, you will get the Calva defaults pasted:

```json
"[clojure]": {
"editor.wordSeparators": "\t ()\"':,;~@#$%^&{}[]`",
"editor.autoClosingBrackets": "always",
"editor.autoClosingQuotes": "always",
"editor.formatOnType": true,
"editor.autoIndent": "full",
"editor.formatOnPaste": true,
"files.trimTrailingWhitespace": false,
"editor.matchBrackets": "never",
"editor.parameterHints.enabled": false
}
```

### Automatic Parmaeter Hints Poppup

Calva has helpful parameter hints to aid when typing function calls. They look like so:

<img width="353" alt="image" src="https://user-images.githubusercontent.com/30010/75957543-8cf4c180-5eba-11ea-8d77-1e543a73ef28.png">

To have the hints automatically pop up when you are typing, set `editor.parameterHints.enabled` to `true` in the above `[clojure]` scoped setting. (To call them up on demand the default VS Code keybindings are `cmd+shift+space` on Mac and `ctrl+shift+space` on Linux/Windows.)

## Jack-in and Connect Sequences

Jack-in and Connect are very customizable through [Custom Connect Sequences](connect-sequences.md).
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@
"editor.autoClosingBrackets": "always",
"editor.autoClosingQuotes": "always",
"editor.formatOnType": true,
"editor.autoIndent": true,
"editor.autoIndent": "full",
"editor.formatOnPaste": true,
"files.trimTrailingWhitespace": false,
"editor.matchBrackets": false
"editor.matchBrackets": "never",
"editor.parameterHints.enabled": false
}
},
"configuration": [
Expand Down

0 comments on commit ff9e45a

Please sign in to comment.