AIP features in Code Repositories

The following is a list of AIP-powered features in Code Repositories.

AIP Assist

Access AIP Assist features through the Ask AIP Assist option, through the editor's right-select menu, or through options inline and enhance your code comprehension using AIP Assist.

The AIP Assist features in Code Repositories can be configured by navigating to Ask AIP Assist > Configure AIP Settings > AIP features.

Code explanation

You can now use AIP in Code Repositories to explain the purpose of code snippets or entire files.

Animated screenshots showing Code Explanation in action in Code Repositories

Find bugs

Use AIP in Code Repositories to check and debug your code.

Animated screenshots showing Find bugs in action in Code Repositories

Translate

AIP in Code Repositories can convert your code to various languages such as Python, SQL, Mesa, or Java.

Animated screenshots showing Translate in action in Code Repositories

Context-aware attachments

Context-aware attachments allow users to attach code snippets, files, and repositories to conversations with AIP Assist. These attachments provide context that enriches AIP Assist knowledge and enables more accurate responses to code-specific questions. You can attach supported resources via the AIP Assist sidebar or from the Ask AIP Assist dropdown.

Code snippets can also be attached by highlighting the desired code, right-clicking, and selecting Attach to AIP Assist from the context menu or directly by using the inline code-assistance options that appear above the selected code.

Inline code assistance [Beta]

Code Repositories now features inline code assistance when a code snippet is highlighted. The Explain, Find bugs, and Ask a question options are displayed above the selected code snippet to enable users to access targeted help from AIP Assist directly from code.

This feature can be disabled by opening the Ask AIP Assist dropdown menu in the top right corner of the editor, and selecting Configure AIP Settings. In the AIP features section, users can configure the Show AIP Assist actions above selected code option and other AIP features to suit their needs.

Users can also access these AIP Assist features from the Ask AIP Assist dropdown menu, or by right-clicking a highlighted code snippet and selecting one of the available AIP Assist options from the context menu.

AI error enhancer

The AI error enhancer provides comprehensive error explanations and suggested code changes where available, along with access to source documents for further information. This feature is available in the Foundry apps listed below:

Code Repositories

In Code Repositories, the feature is shown in the Checks and Preview section.

Animated screenshot showing AI error enhancer in action in Code Repositories

Builds

In Builds, this feature is found in the Job status menu.

Animated screenshot showing AI error enhancer in Job tracker

Code autocomplete

The feature is currently exclusive to Python repositories.

Code autocomplete can help you generate code toward your objective by parsing your currently-opened file to automatically provide the relevant autogenerated code.

  • To accept the suggestion, press tab.
  • To ignore the suggestion, press esc, or start typing something else.

Code autocomplete can be toggled on or off directly in the editor status bar at the bottom of the window or by navigating to Settings (purple cog icon) > Preferences > AIP Features.

Code completion


Note: AIP feature availability is subject to change and may differ between customers.