From be6bea35283a3354b0285b46a3d45ba819f07cae Mon Sep 17 00:00:00 2001 From: Sonal Budhiraja <57969266+sbudhirajadoc@users.noreply.github.com> Date: Thu, 16 May 2024 11:37:02 -0700 Subject: [PATCH] Update einstein-inline.md (#5600) * 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 <46458081+klewis-sfdc@users.noreply.github.com> * Update einstein-inline.md changed "Preferences" to "Settings" in one more place. --------- Co-authored-by: Ken Lewis <46458081+klewis-sfdc@users.noreply.github.com> --- docs/_articles/en/einstein/einstein-inline.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/_articles/en/einstein/einstein-inline.md b/docs/_articles/en/einstein/einstein-inline.md index 28786ba745..2c71fd5104 100644 --- a/docs/_articles/en/einstein/einstein-inline.md +++ b/docs/_articles/en/einstein/einstein-inline.md @@ -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.