code-completion

Code completion for custom modules not working with PyDev

自闭症网瘾萝莉.ら 提交于 2019-12-24 06:49:52
问题 Let's say I make a module called mylib.py. In eclipse I type import mylib Then I type mylib. and hit CTRL+SPACE. This should suggest functions/variables in mylib, but it doesn't do anything. If I do something like import os and type os. , suggestions immediately pop up, so I know code completion works in general, just not for my modules. Any reason why? 回答1: In order to get completion for custom modules, PyDev has to index it (if possible) and introspect the classes, functions, variables and

How do I attach some cached information to an Eclipse editor or resource?

我的未来我决定 提交于 2019-12-24 01:53:39
问题 I'm developing a DSL using Eclipse's Xtext framework. For the content assist/code completion, I have an expensive process which generates me a list of strings. How do I cache the result of that process? Long story: My DSL interfaces with Groovy scripts. The scripts provide methods which I offer in certain places in my DSL. This is pretty slow, even when I use a regexp to parse the methods of the scripts. So I'd like to cache the results of the script analysis. From my analysis, the analysis

XCode 4's code completion for methods in the .h file

前提是你 提交于 2019-12-23 12:42:25
问题 In Xcode 3 I could first write my method in the implementation ( .m ) file; afterwards adding the same method to the interface ( .h ) file. At that point Xcode 3 made a code completion for the method written in the .m file. Sadly, Xcode 4 doesn't code complete my methods like Xcode 3 did. Does anyone else encountered this, and is there an option for this case? An example: The implementation .m file could look like this: #import "Foundation, MyClass.h and stuff" @implementation MyClass -(void

Code-completion doesn't list message handlers

荒凉一梦 提交于 2019-12-23 12:16:51
问题 When working on an old project in Delphi XE2, the code-completion window that pops up after CTRL - SPACE does not list message handlers like Delphi 7 did: In the screen shot above, the WM*** routines are missing. Why is that? 回答1: The unit names in the uses clause are not fully qualified. Include the namespace for each unit and then the necessary types for the method declarations are found to let the code-completion pop-up window return all members. For instance: procedure WMActivate(var

How to select SuperTab completion suggestion without creating new line?

空扰寡人 提交于 2019-12-23 07:39:17
问题 When I hit Enter on SuperTab's popup suggestion, it automatically creates a new line at the end of the inserted keyword. Is it possible to select an option in the SuperTab popup without creating a new line? More specifically, is there a way for me to configure space as the method of selecting the code completion suggestion? 回答1: inoremap <expr> <Space> pumvisible() ? "\<C-y>" : " " Note the <C-y> that accepts currently selected option, you may want to use it directly instead of remapping

How to reproduce this Code Completion bug?

守給你的承諾、 提交于 2019-12-22 18:03:07
问题 I'm having a bug on Delphi XE2 (Update 4 Hotfix 1), which reproduces many times on the legacy project I work (it evolved from D6 to D7,D2006 and finally XE2), but I didn't know how to trigger it in a smaller project. The latest time, it triggered on creating an event handler for a "hidden popup" on the app. When I click on the menu option to create the Click handler this happens. pprocedure TMainForm.Blablabla1Click(Sender: TObject); begin end; rocedure TMainForm.FormActivate(Sender: TObject)

Can I change vim completion preview window height?

坚强是说给别人听的谎言 提交于 2019-12-22 06:36:56
问题 I'm using Eclimd for completion. it generates a lot of helpful info about function, but in 1-line preview window it looks messy. (same window uses by omni-completion) So: Is there any way to change default preview window height? Make preview-popup instead of preview-window? 回答1: I am facing problems with 'previewheight' too so I came up with the following work around: set previewheight=50 au BufEnter ?* call PreviewHeightWorkAround() func PreviewHeightWorkAround() if &previewwindow exec

Is it possible to auto-complete parentheses or quotation marks in emacs?

Deadly 提交于 2019-12-22 05:30:37
问题 I've used XCode and Netbeans, and I've noticed that they have a feature to automatically complete quotation marks or parentheses (and I assume that other IDEs often do this also). I don't know what the name of this feature is, but is there any way to do this in Emacs? For example, when I type printf(" I would like it to automatically input printf("") placing the cursor in between the quotation marks. Thank you. 回答1: The basic variant would be AutoPairs. The same effect but a little more

Eclipse Galileo supports javascript cross-file code completion, but Eclipse Helios does not?

ぃ、小莉子 提交于 2019-12-21 16:57:09
问题 When editing multiple javascript files, each of which are supposed to be available in the global scope because - for example - they will each be loaded in the same html document, Galileo supported this little trick to put comment tags for other files that are required to be available in the same scope: myfile.js: // @include "somefile.js" // @include "otherfile.js" And you have cross-file code completion in myfile.js. But now that I moved to Eclipse Helios, this doesn't work anymore. Did they

Complete Class at Cursor Not Working

纵饮孤独 提交于 2019-12-21 07:09:00
问题 I've been widely making use of the Complete Class at Cursor function in Delphi, in 2010 and in XE2. Recently, after installing Update 4 for XE2, the Complete Class at Cursor stopped working. After doing some research, I found that uninstalling "AQTime" would fix the issue. So I did that (had to re-install Delphi just to remove it) and sure enough it started working again. Except, today, it suddenly stopped again. AQTime is not installed, and I haven't done anything in the IDE at all which (as