From 247e31dbcd05d0637f3a49af37f15a5e46d31182 Mon Sep 17 00:00:00 2001 From: Gordon Hogenson Date: Fri, 29 Sep 2023 12:08:55 -0700 Subject: [PATCH 1/3] Delete and redirect to VS Code docs --- .openpublishing.redirection.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.openpublishing.redirection.json b/.openpublishing.redirection.json index 1f26116..b3c9c3e 100644 --- a/.openpublishing.redirection.json +++ b/.openpublishing.redirection.json @@ -1,5 +1,25 @@ { "redirections": [ + { + "source_path": "docs/intellicode-visual-studio-code.md", + "redirect_url": "https://code.visualstudio.com/docs/csharp/intellicode", + "redirect_document_id": false + }, + { + "source_path": "docs/intellicode-visual-studio-code-completions.md", + "redirect_url": "https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode-completions", + "redirect_document_id": "false" + }, + { + "source_path": "docs/intellicode-api-usage-examples.md", + "redirect_url": "https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode#intellicode-api-usage-examples", + "redirect_document_id": false + }, + { + "source_path": "docs/index.md", + "redirect_url": "/visualstudio/ide/intellicode-visual-studio", + "redirect_document_id": false + }, { "source_path": "docs/intellicode-visual-studio.md", "redirect_url": "/visualstudio/ide/intellicode-visual-studio", From ff448d470110be5fab8d92bd4d039464616605ee Mon Sep 17 00:00:00 2001 From: Gordon Hogenson Date: Fri, 29 Sep 2023 12:10:46 -0700 Subject: [PATCH 2/3] delete files to redirect to VS Code --- docs/index.yml | 29 ------ docs/intellicode-api-usage-examples.md | 31 ------- ...ellicode-visual-studio-code-completions.md | 51 ----------- docs/intellicode-visual-studio-code.md | 90 ------------------- 4 files changed, 201 deletions(-) delete mode 100644 docs/index.yml delete mode 100644 docs/intellicode-api-usage-examples.md delete mode 100644 docs/intellicode-visual-studio-code-completions.md delete mode 100644 docs/intellicode-visual-studio-code.md diff --git a/docs/index.yml b/docs/index.yml deleted file mode 100644 index 799360f..0000000 --- a/docs/index.yml +++ /dev/null @@ -1,29 +0,0 @@ -### YamlMime:Landing - -title: AI-assisted code development -summary: Visual Studio IntelliCode enhances software development by using artificial intelligence. IntelliCode is available for Visual Studio and Visual Studio Code. - -metadata: - title: Visual Studio IntelliCode - description: Learn how to use IntelliCode for Visual Studio. - ms.topic: landing-page - ms.date: 03/27/2020 - author: markw-t - ms.author: mwthomas - manager: jmartens - ms.prod: visual-studio-family - ms.technology: intellicode - ms.custom: intro-landing-hub - -# linkListType: architecture | concept | deploy | download | get-started | how-to-guide | learn | overview | quickstart | reference | tutorial | whats-new - -landingContent: - # Card - - title: Where you can use IntelliCode - linkLists: - - linkListType: concept - links: - - text: AI-assisted code development for Visual Studio - url: /visualstudio/ide/intellicode-visual-studio - - text: AI-assisted code development for Visual Studio Code - url: intellicode-visual-studio-code.md diff --git a/docs/intellicode-api-usage-examples.md b/docs/intellicode-api-usage-examples.md deleted file mode 100644 index bba6420..0000000 --- a/docs/intellicode-api-usage-examples.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: IntelliCode API Usage Examples -ms.date: 07/15/2022 -ms.prod: visual-studio-family -ms.technology: intellicode -ms.topic: conceptual -description: IntelliCode API Usage Examples -author: markw-t -ms.author: mwthomas -manager: jmartens ---- - -# IntelliCode API Usage Examples - -IntelliCode API Usage Examples is a preview feature that lets you see real-world examples of how other developers have used a given function. Examples shown are from public open source repositories on GitHub. - -This preview feature is currently available as a [Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.intellicode-api-usage-examples), and currently supports Python, JavaScript and TypeScript (including JSX and TSX files). - -![Screenshot of IntelliCode API Usage Examples in Visual Studio Code.](https://aka.ms/IntelliCodeUsageExamplesv2) - -## How to use API Usage Examples - -1. Install the [Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.intellicode-api-usage-examples) -1. Open any supported file (PY,JS,JSX and TSX), and hover your mouse over any function call (the call must have open and close parentheses). -1. An info window will appear, below where you're hovering. If the function you hovered is supported by the feature, a link to "See Real World Examples From GitHub" will appear in that window. Note: you may need to scroll the informational window to see the link. -1. Click on the "See Real World Examples From GitHub" link - a results view will appear displaying code examples grouped by how common the API usage is. The API usage will be highlighted in blue. -1. Alternatively, you can go directly to the results view using the keyboard. Move your editing caret onto the function and press Ctrl+. , then hit enter to select "See real world examples from GitHub". -1. You can optionally click on the GitHub-labelled hyperlink within the results view to see the example in the context of the originating GitHub repository. - -## How does it work? -It uses a scan of public GitHub repositories, which creates a mapping from function names to code snippets. These code snippets represent real world usages of those functions. The mapping is used to provide the examples you see when using the feature, via a web service. When you hover a function, the feature only ever sends the names of functions found in public open source repos to the service. It will never send your own custom function names. You can read more about the privacy characteristics of the feature [here](intellicode-privacy.md#intellicode-api-usage-examples) diff --git a/docs/intellicode-visual-studio-code-completions.md b/docs/intellicode-visual-studio-code-completions.md deleted file mode 100644 index 435cb2b..0000000 --- a/docs/intellicode-visual-studio-code-completions.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: VS Code completions -description: Learn about IntelliCode code autocompletions in Visual Studio Code. -ms.custom: SEO-VS-2020 -ms.date: 09/26/2023 -ms.prod: visual-studio-family -ms.technology: intellicode -ms.topic: conceptual -author: aayim -ms.author: aayim -manager: andster ---- - -# IntelliCode Completions for Visual Studio Code - -The [IntelliCode Completions extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode-completions) predicts up to a whole line of code based on your current context. Predictions appear as grey-text to the right of your cursor. This extension supports Python, JavaScript, and TypeScript. - -![IntelliCode Completions for Python in Visual Studio Code](media/wlc.gif) - -For users of [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit), IntelliCode completions are available for C# in VS Code through a separate extension: [IntelliCode for C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscodeintellicode-csharp) - -## How to use -![IntelliCode Completions interpreting IntelliSense completion list selection in Visual Studio Code](media/intellisenseSelection.gif) - -Completions appear after your cursor as you type, with a faded color. When the IntelliSense list is open, its selection is used to inform the whole-line autocompletion. - -At any time, you can accept the suggestion by pressing the `TAB` key (you need to press it twice if the IntelliSense list is visible). If you don't want to accept the suggestion, you can just keep on typing, or press `ESC`. - -### Snippet Completion - -![Accepting a grey text completion with empty string automatically moves the cursor to the empty string](media/vsc-wlc-snippetcompletion.gif) - -If the whole-line autocompletion includes empty strings: - -1. The cursor automatically moves to the first empty string upon accepting the prediction with the `TAB` key. -2. If further empty strings exist within the prediction, pressing the `TAB` key again automatically moves the cursor to the next empty string. - -## Installation - -You can download the extension at the following link: [IntelliCode Completions extension for VS Code](https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode-completions) - -The extension is supported by Visual Studio Code November 2021 Release 1.63 or later. - -## Provide feedback - -If you encounter a problem, you can browse [existing issues](https://github.com/MicrosoftDocs/intellicode/issues) and upvote them using a 👍 "thumbs up" reaction. If you don't see your particular problem, we'd love to hear from you. Include any **Output** window log entries from Visual Studio IntelliCode, Python, Java, JavaScript, or TypeScript with the bug. - -## See also - -- [IntelliCode for Visual Studio](intellicode-visual-studio.md) -- [IntelliCode general FAQ](faq.yml) diff --git a/docs/intellicode-visual-studio-code.md b/docs/intellicode-visual-studio-code.md deleted file mode 100644 index b0d880a..0000000 --- a/docs/intellicode-visual-studio-code.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -title: IntelliCode for VS Code -description: Read an overview of IntelliCode for Visual Studio Code. The IntelliCode extension provides AI-assisted IntelliSense for Python, Java, TypeScript, and JavaScript. -ms.custom: SEO-VS-2020 -ms.date: 04/24/2019 -ms.prod: visual-studio-family -ms.technology: intellicode -ms.topic: conceptual -author: markw-t -ms.author: mwthomas -manager: jmartens ---- -# AI-assisted code development for Visual Studio Code (IntelliCode) - -The [IntelliCode extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode) provides artificial intelligence-assisted IntelliSense for Python, Java, TypeScript, and JavaScript. AI-assisted IntelliSense predicts the most likely correct API for the developer to use rather than just presenting an alphabetical list of members. It uses the developer's current code context and patterns to provide this dynamic list. - -![IntelliCode for Python in Visual Studio Code](media/python-intellicode.gif) - - - - -## Install IntelliCode - -1. Install [Visual Studio Code](https://code.visualstudio.com/) October 2018 Release 1.29 or later for Windows, macOS, or Linux. -2. [Download the Visual Studio IntelliCode extension](https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode) from the marketplace, or install it directly from the **Extensions** view in Visual Studio Code. -3. Reload and wait for dependencies to download and install (see status bar). - -To turn off starred IntelliSense recommendations, disable the extension by clicking **Extensions**. Then, find and select the IntelliCode extension, and then click **Disable**. - -## Prerequisites - -The supported languages for AI-assisted IntelliSense completions are: -- Java. To get AI-assisted IntelliSense for Java, you need Java 8 Update 151 or higher. (If you have a previous Java 8 version, you see the error **java.security.InvalidKeyException: Illegal key size**, and IntelliCode AI-assisted IntelliSense recommendations won't work.) -- JavaScript and TypeScript -- Python -- SQL - -The extension is supported by Visual Studio Code June 2021 Release 1.58 or later. - -## Troubleshoot - -This section provides some troubleshooting tips for common problems. - -### No completion lists - -If you don't see any IntelliSense completion lists, try these steps: - -- Look at the output window for the language you're trying to use and see if there's an actionable error message. - -- Try disabling the IntelliCode extension and see if you get any IntelliSense completions. If you do see IntelliSense completions with IntelliCode disabled, look through the [existing issues](https://github.com/MicrosoftDocs/intellicode/issues) or open a new one. - -You can also try the following troubleshooting steps for your language: - -- JavaScript / TypeScript: [VS Code IntelliSense troubleshooting](https://code.visualstudio.com/docs/editor/intellisense#_troubleshooting) or [JavaScript IntelliSense in VS Code](https://code.visualstudio.com/docs/languages/javascript#_intellisense) - -- Java: [How to troubleshoot and contribute to the Java language server](https://code.visualstudio.com/docs/java/java-faq#_how-to-troubleshoot-and-contribute-to-the-java-language-server) - -- Python: [Meta issue for the Python language server](https://github.com/Microsoft/vscode-python/issues/2177) - - -### No starred suggestions - -If you see IntelliSense completion lists, but none of the completion items are starred, look at the **VS IntelliCode** output window. - -- Is there a network error? - - - Are you able to access the internet normally? - - - Are you behind a proxy or restrictive firewall? - - When using IntelliCode, you may see the error message "Couldn't download IntelliCode model. Check your network connectivity or firewall settings.", or see similar messages in the IntelliCode output window pane in Visual Studio Code. You might also see no IntelliCode starred suggestions. If you connect to the internet through a proxy or restrictive firewall, that may cause these issues. - - As a first step, try updating to Visual Studio Code 1.58 or later, and [turning on network proxy support](https://code.visualstudio.com/updates/v1_30#_network-proxy-support-for-extensions) . - - If turning on network proxy support doesn't work for you, check the corresponding [github issue](https://github.com/MicrosoftDocs/intellicode/issues/4) and let us know more. -- If you're a Java user experiencing the error message **java.security.InvalidKeyException: Illegal key size**, check to make sure you're using Java 8 Update 151 or later. - -- Is there an actionable message that helps? - -If you're still facing a problem, look through the [existing issues](https://github.com/MicrosoftDocs/intellicode/issues) or open a new one. - -## Telemetry - -We capture some anonymized usage and error-reporting data to help improve IntelliCode. No user-defined code is sent to Microsoft, but we collect information about your use of the IntelliCode results. For base model suggestions, which are open source or .NET types and members, we capture whether you selected an IntelliCode suggestion and log the name of the suggestion. Microsoft uses the data to monitor the quality of the base model. For custom models, we capture whether you selected an IntelliCode suggestion but *don't* log the names of your user-defined types or methods. - -You can disable telemetry reporting by following [these instructions](https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting). - -## See also - -- [IntelliCode for Visual Studio](intellicode-visual-studio.md) From 61f82cd5575d9c7d12ed6bf0ed29ca7ee19ff34a Mon Sep 17 00:00:00 2001 From: Gordon Hogenson Date: Fri, 29 Sep 2023 12:27:29 -0700 Subject: [PATCH 3/3] delete TOC.yml --- docs/toc.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 docs/toc.yml diff --git a/docs/toc.yml b/docs/toc.yml deleted file mode 100644 index 157977b..0000000 --- a/docs/toc.yml +++ /dev/null @@ -1,13 +0,0 @@ -- name: IntelliCode Documentation - href: index.yml -- name: IntelliCode for Visual Studio >> - href: /visualstudio/ide/intellicode-visual-studio -- name: IntelliCode for Visual Studio Code - expanded: true - items: - - name: Overview - href: intellicode-visual-studio-code.md - - name: Whole-line autocompletions - href: intellicode-visual-studio-code-completions.md - - name: API usage examples - href: intellicode-api-usage-examples.md