Skip to content

Commit

Permalink
Update einstein-inline.md (#5600)
Browse files Browse the repository at this point in the history
* Update einstein-inline.md

Added information about the new setting for inline completion length.

* Update docs/_articles/en/einstein/einstein-inline.md

Co-authored-by: Ken Lewis <[email protected]>

* Update einstein-inline.md

changed "Preferences" to "Settings" in one more place.

---------

Co-authored-by: Ken Lewis <[email protected]>
  • Loading branch information
sbudhirajadoc and klewis-sfdc authored May 16, 2024
1 parent 53665a3 commit be6bea3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/_articles/en/einstein/einstein-inline.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,19 @@ Inline autocomplete is enabled by default. Click the Einstein icon in the status

To enable or disable the Inline Autocomplete feature from Settings:

1. Select **File** > **Preferences** > **Settings** (Windows or Linux) or **Code** > **Preferences** > **Settings** (macOS).
1. Select **File** > **Preferences** > **Settings** (Windows or Linux) or **Code** > **Settings** > **Settings** (macOS).
2. Under **Einstein for Developers**, select **Enable Einstein Auto Completions** then select the language for which to enable the feature.

## Select Inline Completion Length

To select the length of generated inline autocompletions:

1. Select **File** > **Preferences** > **Settings** (Windows or Linux) or **Code** > **Settings** > **Settings** (macOS).
2. Under **Einstein for Developers**, go to **Autocompletion Length** and select **Short** or **Long** from the dropdown.

Note that longer completions can span multiple lines. Short completions typically span only a single line.


## Receive your First Inline Completions

Einstein for Developers automatically generates code and suggests completions for you as you type. When writing code, you're often doing things like assigning variable values to an `SObject` such as `Account.name = abc`, or `Account.type = Business` in Apex. Pause the cursor after the variable value and watch Einstein for Developers complete your code for you and fill out the remaining fields. The Einstein icon in the status bar keeps you updated about completion progress.
Expand Down

0 comments on commit be6bea3

Please sign in to comment.