You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ You can install this extension in two ways:
60
60
4. Build the extension:
61
61
62
62
```sh
63
-
vsce package
63
+
npx vsce package
64
64
```
65
65
66
66
5. Install the extension with `install from VSIX...`in VS Code in the same way as the [above](#download-vsix-file).
@@ -69,11 +69,16 @@ You can install this extension in two ways:
69
69
70
70
### Preparation(Configuration)
71
71
72
+
#### Required Configuration
73
+
74
+
Open the command palette with `Ctrl+Shift+P` and type`QuickTypoFix: Register API Key`.
75
+
Then type your OpenAI API key and press `Enter`.
76
+
77
+
#### Optional Configuration
78
+
72
79
Open the setting page with `Ctrl+,` and search `quicktypofix`.
73
80
Then you can customize this extension as follows:
74
81
75
-
- **REQUIRED**
76
-
- `quicktypofix.apiKey`: The API key for typo corrections. Default is an empty string;
77
82
- **Optional**
78
83
- `quicktypofix.apiEndpoint`: The OpenAI-compatible chat completion API endpoint for typo corrections. Default is [https://api.openai.com/v1/chat/completions](https://api.openai.com/v1/chat/completions);
79
84
- `quicktypofix.modelName`: The LLM model name for typo corrections. Default is `gpt-4o-mini`;
@@ -88,24 +93,34 @@ During writing codes or texts in VS Code, you can use the QuickTypoFix command t
88
93
89
94
1. `Ctrl+Shift+P` to open the command palette, thentype`Fix typo in this line` and selectthe command.
90
95
91
-
or
96
+
or
92
97
93
98
2. `Crtl+K Ctrl+N` to execute the command directly.
94
99
95
100
- NOTE: You can remeber the shortcut by `Ctrl+K` followed by `Ctrl+N` as "これ直して(Kore Naoshite)".
96
101
97
102
After fixed, the typo will be highlighted for a short period of time. Check them.
98
103
104
+
#### Optional Usage
105
+
106
+
Here is the list of ways to use this extension in the command palette:
107
+
108
+
1. `"QuickTypoFix: Register API Key"`: to register your OpenAI API key.
109
+
2. `"QuickTypoFix: Clear Stored API Key"`: to clear the stored OpenAI API key.
110
+
3. `"QuickTypoFix: Preview Masked API Key"`: to preview your OpenAI API key with the masked format.
111
+
- For example, if your OpenAI API key is `sk-1234567890890890`, the masked format is `sk-**********890`.
112
+
4. `"QuickTypoFix: Fix typo in this line"`: to fix the typos in the current line, which is the same as the default shortcut `Ctrl+K Ctrl+N`.
113
+
99
114
## Development
100
115
101
-
### Requirements
116
+
### Development Requirements
102
117
103
118
- [Node.js](https://nodejs.org/) >= v20.11.1
104
119
- [npm](https://www.npmjs.com/get-npm)
105
120
- Dependencies (See the [package.json](./package.json) for the details)
0 commit comments