Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Lua Development Tools » Autocomplete without CTRL+SPACE
Autocomplete without CTRL+SPACE [message #1737135] Wed, 06 July 2016 04:37 Go to next message
Alex Fest is currently offline Alex FestFriend
Messages: 5
Registered: July 2016
Junior Member
Hi.
Is it possible to activate autocomplete without ctrl+space?
For example i write pr and editor views print and etc?
Re: Autocomplete without CTRL+SPACE [message #1737177 is a reply to message #1737135] Wed, 06 July 2016 08:53 Go to previous messageGo to next message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
Not really,
But in Windows/preference/lua/Editor/code assistance, you can enable auto activation for content assist. But this will be only done for some operators like '.'
Thats means if you type "io." you will get content assist without ctrl+space. (But I think this is activate by default)
Re: Autocomplete without CTRL+SPACE [message #1737181 is a reply to message #1737177] Wed, 06 July 2016 08:58 Go to previous messageGo to next message
Alex Fest is currently offline Alex FestFriend
Messages: 5
Registered: July 2016
Junior Member
Thanks for reply.
Yes, i know about '.' .
So there is no way to activate autocomplete without dotes and ctrl+space? Sad
Re: Autocomplete without CTRL+SPACE [message #1737182 is a reply to message #1737181] Wed, 06 July 2016 09:04 Go to previous messageGo to next message
Alex Fest is currently offline Alex FestFriend
Messages: 5
Registered: July 2016
Junior Member
And i have one more question. I will not add new theme, because it's similar to this theme.
Does LDT supports autocomplete with require?
For example i have file engine.lua:
local M = {} 

M.print = function( text )
 print( text )
end 

M.get = function( get ) 
 return M.get
end

return M


And main.lua:
local test = require("engine")
test.print("hello")


SO when i put "test.*" it will show me all functions in that "engine.lua" : .print, .get ? Without creating a Executiong Environment

[Updated on: Wed, 06 July 2016 09:07]

Report message to a moderator

Re: Autocomplete without CTRL+SPACE [message #1737193 is a reply to message #1737182] Wed, 06 July 2016 10:24 Go to previous messageGo to next message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
it should. It try to guess by analyzing code but sometime the only solution is to help it with some documentation.
Re: Autocomplete without CTRL+SPACE [message #1737278 is a reply to message #1737193] Wed, 06 July 2016 19:32 Go to previous messageGo to next message
Alex Fest is currently offline Alex FestFriend
Messages: 5
Registered: July 2016
Junior Member
No, it's not works
Re: Autocomplete without CTRL+SPACE [message #1737626 is a reply to message #1737278] Mon, 11 July 2016 12:07 Go to previous messageGo to next message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
I just tested it. And it works ...
You need to do that in a Lua Project and respect build path.
https://wiki.eclipse.org/LDT/User_Area/User_Guides/User_Guide_1.3#Buildpath
Re: Autocomplete without CTRL+SPACE [message #1737743 is a reply to message #1737626] Tue, 12 July 2016 12:38 Go to previous message
Alex Fest is currently offline Alex FestFriend
Messages: 5
Registered: July 2016
Junior Member
But autocomplete without ctrl+space isn't working Sad
Is there any solution for that problem?
I found only on Java Eclipse, but it isn't wokrs for LDT http://stackoverflow.com/questions/1959946/ctrl-space-in-eclipse-without-pressing-ctrl-space
Previous Topic:Debugger crashes with Torch and Mars
Next Topic:Installation Problem
Goto Forum:
  


Current Time: Sat Apr 20 02:08:03 GMT 2024

Powered by FUDForum. Page generated in 0.03563 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top