AI Prompt Engineering: Difference between revisions

Jump to navigation Jump to search
m
Tags: Mobile edit Mobile web edit
Tags: Mobile edit Mobile web edit
Line 499: Line 499:
=== Refactor the source code ===
=== Refactor the source code ===


Template of prompt
<pre>
<pre>
refactor the code
refactor the code


```<language>
(place your source code here)
```
```
</pre>
Example of prompt:
<pre>
refactor the code
```php
(place your source code here)
(place your source code here)
```
```
</pre>
</pre>
{{exclaim}} If the language of the source code is not specified, ChatGPT will attempt to identify the language used.


More on [[AI assistants in coding]]
More on [[AI assistants in coding]]

Navigation menu