Questions tagged [code-completion]

Refers to an IDE or editor feature that attempts to predict what you will type next based on context, speeding up code entry.

Code completion is a form of used by s or code oriented editors showing possible completions to a partially written code.

Common elements in many implementations:

  • Related keyboard shortcuts to simplify usage (invocation, choice selection)
  • Flexible configuration to:
    • Enable/disable the feature
    • Change response time
    • Associated shortcuts

Example: Netbeans guide has a Smart Code Completion section with pictures that show a common way used to implement this feature.

802 questions
30
votes
3 answers

Can't disable method parenthesis auto-complete in Eclipse

I'm trying to disable the automatic closing of brackets in Eclipse, and while I've mostly succeeded, I can't stop the editor from inserting a closing parenthesis for a method call. The result is that when I type: myBool.equals(true); it inserts a…
Chris Vig
  • 8,552
  • 2
  • 27
  • 35
30
votes
4 answers

Hide external modules when importing a module (e.g. regarding code-completion)

I have several modules in one package (a kind of a toolkit), which I use in my projects. The structure looks like this: the_toolkit: __init__.py basic_io.py simple_math.py matrix_kit.py ... Now when I use IPython or the code…
tamasgal
  • 24,826
  • 18
  • 96
  • 135
28
votes
6 answers

Delphi code completion performance

I have a few large (~600k lines of code) Delphi projects. They include some custom components which our team has developed. Often, when I call up code completion with ctrl+space or just by pressing ".", the IDE locks up and thinks really hard for a…
JosephStyons
  • 57,317
  • 63
  • 160
  • 234
28
votes
3 answers

Ctrl+Space for omni and keyword completion in vim

I Want to use Ctrl+Space for omni-completion (and keyword completion if there is no omni-completion) in vim. I've tried this which I found somewhere on the web: inoremap pumvisible() ? "\" :…
Marlun
  • 1,543
  • 3
  • 12
  • 14
28
votes
4 answers

Making sense out of Emacs completion mode choices

There appears to be many alternative Emacs auto completion mechanisms. Without an exhaustive search, the following come to mind: ido, auto-complete, icicles, in buffer completion, minibuffer completion and standard out of the box completion. And…
pajato0
  • 3,628
  • 3
  • 31
  • 37
27
votes
3 answers

Can I customize automatic event handler generation in Visual Studio?

When you subscribe to an event in code, Visual Studio automatically completes the code after += and generates the appropriate event handler: button.Click += new EventHandler(button_Click); // ↑_____auto generated code_____↑ Notice how…
Thomas Levesque
  • 286,951
  • 70
  • 623
  • 758
26
votes
5 answers

NetBeans PHP code completion for own code

Recently I started using NetBeans 6.7 beta for PHP development instead of Textmate and MacGDBp. I am rather amazed with it's feature set and most everything worked out of the box, or was easily configured to my liking. I am having an issue with the…
Kris
  • 40,604
  • 9
  • 72
  • 101
25
votes
2 answers

How to enable completion of C++ template classes in vim using YouCompleteMe

When using the vim plugin YouCompleteMe for C++ code completion I stumbled over an issue. Using nested template classes stops the completion to work properly. Consider the following example to reproduce the behaviour: #include…
Phil
  • 259
  • 3
  • 6
25
votes
7 answers

Emacs code completion for C/C++?

Emacs wiki Xrefactory CEDET ? What can you recommend me ?
ZeroCool
  • 1,490
  • 4
  • 19
  • 33
24
votes
3 answers

How can I make the documentation pop-up on hover in PyCharm?

I would like to know how to configure PyCharm so that when I hover over an object or method I get a (formatted) pop-up containing the doc-string. How can I do this?
lofidevops
  • 15,528
  • 14
  • 79
  • 119
23
votes
4 answers

How to auto complete for loop in Android studio

I'm using Android studio and i'm trying to find a way to use a very common thing i used to do in eclipse. when i'm writing (for example) a for loop, i'm writing the word "for" then i click on Ctrl+Space and eclipse autocomplete to a for loop with…
22
votes
1 answer

How can I modify the code generated by Class-Completion (ctrl-shift-c)

I would like to modify class completion so that every method that is created contains a raise ENotImplemented.Create; Does anybody know how to customize this behavior? update: I would like solution that is not dependent on a third parties. From…
Tobias R
  • 928
  • 8
  • 22
22
votes
5 answers

Pydev Code Completion for everything

In many cases (such as function parameters) Pydev doesn't statically know the type of a variable. Therefore code completion (after . or when using ctrl+space) doesn't work. In most cases, you know what type will be in run-time as you are designing…
Jonathan Livni
  • 101,334
  • 104
  • 266
  • 359
22
votes
9 answers

Has anyone found a good set of python plugins for vim -- specifically module completion?

I'm looking for a suite of plugins that can help me finally switch over to vim full-time. Right now I'm using Komodo with some good success, but their vim bindings have enough little errors that I'm tired of it. What I do love in Komodo, though, is…
andrew
  • 1,173
  • 2
  • 18
  • 28
21
votes
2 answers

Ignore case android studio 3 code completion

Currently code completion is case sensitive so when i type names, it doesn't show me suggestions. how do i make it ignore case? as an example when i type Sta or sta it should suggest startActivity. I could not find it in the settings, I'm lazy to…
1
2
3
53 54