824 questions
0
votes
1
answer
62
views
How do I use rustyline::Editor::set_helper to react to tab-completion requests?
I'm going through Build your own shell, and I've got to the task of implementing command completion. A note suggests:
We recommend using a library like readline for your implementation. Most modern ...
-1
votes
0
answers
134
views
Does the Dart language server support code completion for switch statements?
Does the Dart language server support code completion for switch statement?
I am asking about the Dart extension for VS Code.
In the switch statement, I want to get a suggestion (autocompletion) for ...
0
votes
0
answers
79
views
How to trigger code completion in Visual Studio
Visual studio 2022 sometimes shows code suggestions like this. How do I trigger this suggestion (for example when I dismiss it)? I search in settings and shortcut but I couldn't find anything.
I don't ...
2
votes
1
answer
338
views
Enforce formatting inside GitHub Copilot code completion suggestions in Visual Studio Code
Current behavior:
GitHub Copilot console.log() suggestion:
console.log('userId:', userId);
Expected suggestion with desired custom formatting:
console.log('userId: ', userId);
Is there a way to ...
0
votes
0
answers
81
views
Not able to select Android Studio Inline Code Suggestion
Hi I have the following set up Android Studio Meerkat | 2024.3.1 Patch 2.
I am having trouble selecting Inline Code suggestion. I am using Kotlin.
For example when i type Spacer( , it gives me a bunch ...
1
vote
0
answers
58
views
How to fix command auto-completion in Android Studio terminal to suggest the most used commands?
In Android Studio's terminal, when I type commands, it suggests completions that I don’t use. For example, I frequently run yarn android, but it always suggests yarn android-info.txt, which I’ve never ...
0
votes
0
answers
38
views
VS Code Intellisense and Error Highlighting for Web Components (3.0.0-alpha.10)
Is there a way to get code completion (Intellisense) to work for web components in VS Code?
I'm currently using version 3.0.0-alpha.10 of the web components library, and I always encounter red line ...
0
votes
0
answers
30
views
How to customize color scheme for completion popup
I am using the "Operator Mono" font, and I set default text to be Italic. Everything is fine except the font of completion popups is not italic
Settings > Editor > Color Scheme > ...
0
votes
1
answer
68
views
Android Studio Code Completion not working in test folder in all projects
I have been following along the Android Basics with Compose projects on the Android Developer website but my code completion suddenly stopped working in every project that I have specifically in the ...
0
votes
1
answer
214
views
Xcode predictive code completion not work with Image(systemName: )
When I want to use some system image I can't just remember them all, and I was hoping that new Xcode prediction will help here. But it does not know any even popular system images. Maybe I need to ...
0
votes
1
answer
245
views
How to force PhpStorm to always show popup code completion alongside (AI) inline completion
Is there anyway of always showing the popup code completion alongside (AI) inline completion in PhpStorm/WebStorm?
My default view looks like below, where the inline completion shows, but there's no ...
2
votes
1
answer
272
views
Why does code completion not work for ".tpp" file extension in Neovim?
I have installed nvim-lspconfig and nvim-cmp plugins for Neovim. A code completion with ccls works pretty well for .cpp and .hpp file extensions. I want to make code completion to also work with .tpp ...
1
vote
1
answer
72
views
Python static property autocomplete list not working in PyCharm
I'm using PyCharm Community Edition 2024.2.4. Autocomplete function lists appear correctly except in the case where I have a static property returning an object instance.
The static property syntax ...
1
vote
0
answers
238
views
Is it possible to use Clang Code Completion instead of Intellisense in Visual Studio 2022?
My main IDE at work is Visual Studio 2022, but sometimes I use Android Studio or XCode. I've realized that the code completion and/or reference finding works much better in both Android Studio and ...
0
votes
0
answers
49
views
VSCode syntax highlight and other features are garbled
Frequently, VSCode garbles the syntax highlighting in my code:
When this happens, other features like code completion also fail (e.g., it will not give me a context menu after I type a period after ...
1
vote
1
answer
154
views
How can I know if a vscode intelliSense suggestion is visible?
I am creating an inline code completion plugin for vscode.
I am using the InlineCompletionItemProvider to show the inline suggestions.
However, I am making the call to generate suggestion even when an ...
0
votes
1
answer
87
views
How to enable/provide a vscode CompletionItemProvider when inside string literal?
I have a pretty basic vscode extension with a CompletionItemProvider. This works all well but when inside a string literal ("") the completion does not work anymore. I've found some older ...
0
votes
1
answer
37
views
code completion based on a hierarchy of properties
I want to create a class that has the following structure:
ClassName
UpperLevel
Element_A:
val_1 = 'example'
Element_B: Tuple(str, str)
Element_C: Tuple(str, str)...
0
votes
1
answer
530
views
How to do hover and autosuggest at the same time in Monaco Editor?
Monaco Editor is very cool, but I've been beating my head against it for awhile, and the sparse documentation and uncommented examples they provide have not helped.
Here's my situation. Like so many ...
5
votes
1
answer
767
views
Pycharm debugger console not autocompleting variables created in the debugger console
I have just upgraded to PyCharm 2023.3.3 community edition and am experiencing a weird issue that hasn't occurred before. System is Windows 10 64 bit, and this has worked fine on this machine before.
...
0
votes
2
answers
1k
views
Studio Bot Missing in latest andriod studio bot
I have just installed latest version of andriod studio lguana. But it is missing the studio Bot an AI code companion. I have searched a lot but unable to find it. Preview of lguana more tools expanded
...
1
vote
1
answer
1k
views
In IntelliJ IDEA, how to select next code completion using Tab?
By default we use ⬇️ to select next code completion choice, and use Tab to apply that choice. For example, here if we press Down, it will highlight InternalError; if we press Tab, it will apply the ...
13
votes
4
answers
14k
views
How Do I Disable AI Code Suggestions in PyCharm?
I would like to disable the AI code suggestions in PyCharm. I noticed them when I updated to PyCharm 2023.3.2.
I looked up the PyCharm documentation on Code Completion but didn't find anything helpful....
0
votes
1
answer
465
views
Visual Studio 2022 ( Window for Code ) not Working
Version:
Microsoft Visual Studio Community 2022 (64-bit) - Current
Version 17.8.3 (windows 10)
The Code editor Window behaves strangely, does not work at all.
The same Solution / Project if open in my ...
0
votes
1
answer
1k
views
How can I make VS Code always show all inline details in the suggestion widget?
In VS Code, you can use CTRL + Space to trigger suggestion (at least that's what I use for Trigger Suggest command). The command will show the suggestion; e.g., using it on an object will show it's ...
1
vote
1
answer
2k
views
How do I implement the inline ghost code suggestion feature in a VS Code Extension?
I am creating a VS Code extension in which I wish to implement the feature of showing the suggested code as ghost text which is inline on the text editor and the user may press Tab to confirm/add the ...
0
votes
1
answer
818
views
Import suggestions are not showing up in JetBrains PyCharm
For some reason not able to get import suggestions in PyCharm. It was working fine but suddenly all stopped working.
0
votes
0
answers
67
views
How do I get the correct (latest) version of React quick documentation in WebStorm?
Using WebStorm IDE. Quick Documentation (on hover) is showing old documentation for React version 16.8.
Does anyone knows how to get this to show the latest version? Is there a setting I'm missing? ...
1
vote
1
answer
367
views
How do I Invoke Code Completion for JupyterLab Desktop?
JupyterLab reports version 4.0.5
JupyterLab Desktop reports version 4.0.5-1
I am using the default environment.
I am using linux.
By code completion, I do not mean using the tab button on the keyboard....
1
vote
0
answers
601
views
How to implement StoppingCriteria in huggingface transformers v4.33 for code completions?
I'm tryting to get stats of the inference time of different code-completion models on the HumanEval dataset. Since timing is a crucial part of this project, I don't want to time the model when it ...
2
votes
1
answer
2k
views
ElixirLS Code Completion Not Working in Visual Studio Code Windows
I'm currently experiencing an issue with the ElixirLS extension in Visual Studio Code where the code completion feature is not working as expected. I've followed the recommended installation steps, ...
-1
votes
1
answer
728
views
Code Completion not working properly in DataSpell?
I have included three images highlighting the issue I've encountered with code completion in Dataspell. The image below shows how an instance of Jupyter running in a browser deals with code completion....
3
votes
1
answer
574
views
Exclude CSS files from autocomplete in PhpStorm
When I developing a Laravel, Inertia, and Svelte, CSS classes from node_modules somehow are included at my PhpStorm autocomplete. It's kinda annoying since I don't need them.
Is there any ways to ...
-1
votes
1
answer
765
views
VS Code JavaScript Intellisense is very slow on windows 10, but fast on Windows 11
I have a react project using JavaScript files in which the Intellisense code completion suggestions are extremely slow when using Visual Studio Code in Windows 10. It takes 7 seconds to get a code ...
2
votes
0
answers
964
views
Can VS Code suggest all dataframe column labels?
Is there any way to make VS Code suggest all dataframe column labels?
From the above sample dataframe, I expect all the column labels (Country, Product, Price, Qty) is going to popup. But none show ...
4
votes
1
answer
3k
views
How can I disable parameter auto-completion when selecting a suggested function in VS Code with the clangd extension?
When typing the prefix of a function name in VS Code, the IDE will provide suggestions to choose from. When using the clangd extension, if the suggestion is a function and the user selects it using ...
1
vote
0
answers
166
views
How to do code completion in Android studio for Dart?
I found that the code completion will not works well for function(block)
for example , If I wrote a function, and the IDE will prompt for code completion
And if i press tab for code completion , the ...
0
votes
1
answer
903
views
How can I get Intellisense function completions working for external libraries?
I was coding a new project to majorly update it to include cross compatibly however my IntelliSense went kinda werid it worked sometimes but other times not, here is an example:
"Text". # it ...
0
votes
1
answer
327
views
What setting decides how vs code searches for python import suggestions?
Using python in VS Code I was always able to press ctrl+space to get code suggestions, both for finishing arguments and for imports. For some reason now only code completion is shown, but no import ...
2
votes
0
answers
283
views
Flutter / Android Studio: How to show types in code completion?
Android Studio
Android Studio doesn't show types when using code completion, but VSCode does.
VSCode
As we can see, VSCode show types when using code completion. Is there any settings in Android ...
1
vote
1
answer
1k
views
No code completion or suggestions in IntelliJ when working with multi-gradle project
My folders are marked as source folders and all auto-completion settings are enabled.
If I open the sub-projects individually (as the root) in IntelliJ, code completion works fine.
However, when I ...
0
votes
0
answers
338
views
Editing CSS in PhpStorm is so slow
Lately I've been editing CSS files in PhpStorm a lot lately, and I've noticed that the CSS code completion is very slow. Suggested display time is about 2-5 seconds.
I think PhpStorm scanned too many ...
1
vote
1
answer
196
views
How to tell PhpStorm / WebStorm that some argument has to be a CSS selector?
I want to use jQuery-like shorthands for the JavaScript methods querySelector and querySelectorAll. At least I've already managed that PhpStorm understands the return results on completion. However, I'...
6
votes
1
answer
680
views
Make Enter insert a newline when the autocomplete word is fully typed
In VSCode, when I type C# code like else, then I press Enter to go to the next line and type the { of the following block. But no new line is inserted. Instead, that autocomplete suggestions dropdown ...
2
votes
2
answers
315
views
How can I make the suggestions widget appear "automatically" for a completion provider in a VS Code extension
Full extension source code is here.
I have this config in my extension package.json:
"contributes": {
"configurationDefaults": {
"[link]": {
"editor....
0
votes
1
answer
2k
views
VScode: Kotlin plugin autocomplete not working
Today I first started programming with Kotlin in VScode. I installed the Kotlin plugin (which as I understood this plugin should provide autocomplete feature), but strangely when I start writing code, ...
-1
votes
1
answer
83
views
How can I see "all" constructors on AppCode by code completion?
I am new to ios development and studying SwiftUI.
xCode shows more than 5 constructors of Button.
AppCode shows only 2 constructors of Button.
xCode (many constructors)
AppCode (only 2 constructors)
...
0
votes
0
answers
40
views
Completions in special .json files?
What is the completion support in special files like launch.json powered by in VS Code? Is it only the JSON schema, or is there a more complex completion service behind it? I'm particularly interested ...
2
votes
1
answer
611
views
How to use the value of a variable as a type hint in python
How do I assign a variable value as a type hint? I have attached a sample code for what I want to achieve:
class Class1:
var1 = 1
class Class2:
var2 = 2
class BaseClass:
def __init__(...
0
votes
0
answers
91
views
Visual Studio razor code editor. How to create event handler for events
I have next code in the razor file
<button type="button" @onclick="ButtonBtnClick">Button</button>
Now I want to write code for ButtonBtnClick method but I can't ...