Skip to content

Commit 307ab92

Browse files
committed
Aesthetic and marketing fixes
1 parent 0bb9b2d commit 307ab92

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# ChatGPT Extension for VSCode
1+
# ChatGPT extension for VSCode
22

33
This Visual Studio Code extension allows you to use the [unofficial ChatGPT API](https://github.com/transitive-bullshit/chatgpt-api) to generate natural language responses from OpenAI's [ChatGPT](https://chat.openai.com/chat) to your questions, right within the editor.
44

5+
🤖✨ Supercharge your coding with AI-powered assistance. Automatically write new code from scratch, ask questions, get explanations, refactor code, find bugs and more!
56

67
### [Marketplace](https://marketplace.visualstudio.com/items?itemName=timkmecl.chatgpt), [Github](https://github.com/timkmecl/chatgpt-vscode)
78

@@ -45,23 +46,23 @@ To use the extension, open a text editor in Visual Studio Code and open the Chat
4546

4647
<img src="examples/create.png" alt="Writing new code using chatGPT" width="500"/>
4748

48-
You can also select a code snippet in the editor and then enter a prompt in the side panel, or right-click and select "Ask ChatGPT". The selected code will be automatically appended to your query when it is sent to the AI. This can be useful for generating code snippets or getting explanations for specific pieces of code.
49+
You can also select a code snippet in the editor and then enter a prompt in the side panel, or right-click and select "Ask ChatGPT". The **selected code will be automatically appended** to your query when it is sent to the AI. This can be useful for generating code snippets or getting explanations for specific pieces of code.
4950

5051
<img src="examples/explain.png" alt="Refactoring selected code using chatGPT"/>
5152

52-
To insert a code snippet from the AI's response into the editor, simply click on the code block in the panel. The code will be automatically inserted at the cursor position in the active editor.
53+
To **insert a code snippet** from the AI's response into the editor, simply click on the code block in the panel. The code will be automatically inserted at the cursor position in the active editor.
5354

5455
<img src="examples/refactor.png" alt="chatGPT explaining selected code"/>
5556

56-
You can select some code in the editor, right click on it and choose one of the following from the context menu:
57+
You can select some code in the editor, right click on it and choose one of the following **shortcuts** from the context menu:
5758
#### Commands:
5859
- `Ask ChatGPT`: will provide a prompt for you to enter any query
5960
- `ChatGPT: Explain selection`: will explain what the selected code does
6061
- `ChatGPT: Refactor selection`: will try to refactor the selected code
6162
- `ChatGPT: Find problems`: looks for problems/errors in the selected code, fixes and explains them
6263
- `ChatGPT: Optimize selection`: tries to optimize the selected code
6364

64-
`Ask ChatGPT` is also available when nothing is selected. For the other four commands, you can customize the exact prompt that will be sent to the AI by editing the extension settings in VSCode Preferences.
65+
`Ask ChatGPT` is also available when nothing is selected. For the other four commands, you can **customize the exact prompt** that will be sent to the AI by editing the extension settings in VSCode Preferences.
6566

6667

6768
Because ChatGPT is a conversational AI, you can ask follow-up questions to the response. The conversation context is maintained between queries, so you can ask multiple questions in a row.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "chatgpt",
33
"displayName": "ChatGPT: write and improve code using AI",
4-
"description": "Extension that allows you to use OpeanAI's ChatGPT inside the IDE (unofficial)",
5-
"version": "0.4.1",
4+
"description": "Use ChatGPT right inside the IDE to enhance and automate your coding with AI-powered assistance (unofficial)",
5+
"version": "0.4.1.1",
66
"publisher": "timkmecl",
77
"icon": "resources/extensionIcon.png",
88
"license": "MIT",
@@ -16,9 +16,10 @@
1616
"Other"
1717
],
1818
"keywords": [
19-
"copilot",
20-
"openai",
2119
"chatgpt",
20+
"openai",
21+
"gpt3",
22+
"copilot",
2223
"ai",
2324
"explain",
2425
"find bugs",

src/extension.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,18 @@ class ChatGPTViewProvider implements vscode.WebviewViewProvider {
316316
<script src="${microlightUri}"></script>
317317
<style>
318318
.code {
319-
white-space : pre;
319+
white-space: pre;
320+
}
321+
.p {
322+
padding-top: 0.25rem;
323+
padding-bottom: 0.25rem;
324+
}
320325
</style>
321326
</head>
322327
<body>
323-
<input class="h-10 w-full text-white bg-stone-700 p-4 text-sm" type="text" placeholder="Ask ChatGPT something" id="prompt-input" />
328+
<textare class="h-10 w-full text-white bg-stone-700 p-4 text-sm" placeholder="Ask ChatGPT something" id="prompt-input" />
324329
325-
<div id="response" class="pt-6 text-sm">
330+
<div id="response" class="pt-4 text-sm">
326331
</div>
327332
328333
<script src="${scriptUri}"></script>

0 commit comments

Comments
 (0)