Closed EliotVU closed 11 years ago
thats basically already implemented. just type InitializeComponent at the beginning of a line and accept the completion. -> voilà
Oh, I see. Though the auto comment is not really wanted.
Also this opens the snippet window or whatever it is, I don't see the point of that. I've noticed the IDE opens this window even when just indenting text.
I'm quite busy at the moment, so I don't have time to look into this. Basically the idea of the documentation panel is that you see the documentation of the function you're currently using. However it will be opened even if no documentation is available, that's why it's opening when indenting.
The thing with indenting text is really strange, it thinks the word right of the cursor was just entered through the autocompletion, so that's why it displays the documentation panel... The problem is that sublime maps the tab button to 'insert_best_completion', so my plugin thinks it did insert a completion. A work around is to intend multiple lines at the same time or place the cursor at the very beginning of the line, no good solution though. Or use shift tab, this forces sublime to enter a literal tab instead, but this does also remove a tab sometimes.
I've removed the documentation as you suggested.
You know it would be awesome to implement a Super snippet so basically when typing this:
protected function InitializeComponent() { super }
it would complete to:
protected function InitializeComponent() { super.InitializeComponent(); }
including parameters if available.