PhpDoc icon indicating copy to clipboard operation
PhpDoc copied to clipboard

Sublime text 3 compatibility

Open brice opened this issue 11 years ago • 32 comments

Is there any plan to make this plugins compatible with Sublime Text 3?

brice avatar Aug 27 '13 11:08 brice

it works just fine in ST3 just clone it in the packages folder
git clone https://github.com/SublimeText/PhpDoc.git

mihai-vlc avatar Aug 27 '13 16:08 mihai-vlc

i tried it but i think i'm not doing it right cause it doesn't work.

brice avatar Aug 29 '13 12:08 brice

@brice it works just fine just go to the line before the method type /** and press Ctrl+space

mihai-vlc avatar Aug 29 '13 12:08 mihai-vlc

I think the package is not take in account. I made the git clone in .config/sublime-text-3/Packages. But after that nothing seems to work and i don't see any settings about the phpdoc package.

brice avatar Aug 29 '13 12:08 brice

what os do you have ? Make sure you do it in the folder you open from Preferences->Browse Packages

mihai-vlc avatar Aug 29 '13 13:08 mihai-vlc

I have Ubuntu 64 bit and i did it on the folder open from the Browse Packages action

brice avatar Aug 29 '13 13:08 brice

The package may be compatible with ST3, but it's listed as ST2 only on Will Bond's packages site. Any chance of getting that rectified somehow?

See: https://sublime.wbond.net/packages/PhpDoc

alexrussell avatar Sep 03 '13 12:09 alexrussell

I have sent a pull request to make phpdoc compatible with the SublimeText 3.

https://github.com/wbond/package_control_channel/pull/2105

yvmarques avatar Oct 09 '13 11:10 yvmarques

I'm just looking at ensuring everything works and merging #9.

jbrooksuk avatar Oct 10 '13 08:10 jbrooksuk

Working on Sublime Text 3, installed by Package Manager.

I think it just needs and update on the README and then, close this issue.

paulodiovani avatar Jan 28 '14 13:01 paulodiovani

I've just downloaded this and I'm trying to get it to work with ST3. ( on Mavericks )

Typing /** and ctrl+space or cmd+space does nothing but create a new line.

When I type /** and tab ( my autocomplete ) all I get are new lines with * on them, I don't think this is working as intended.

After more testing, it seems that the PHPDoc package is not overriding the default 'DocBlock' autocomplete that ships with ST3.

I disabled all packages and did the /** autocomplete without any packages and I get the same result with or without PHPDoc installed.

ghost avatar Feb 01 '14 17:02 ghost

Same behavior on my configuration (linux ubuntu 12.04 with ST3)

brice avatar Feb 01 '14 20:02 brice

I've just checked this on my OSX Mavericks install and pressingctrl+space after /** has expanded to the complete comment header code as expected.

@rawrkats and @brice did you install via Package Control? I've just installed fresh from PC and it worked fine :+1:

jbrooksuk avatar Feb 03 '14 10:02 jbrooksuk

I can write a DocBlock .. but how can I generate the documetation? The rightclick on a file or folder doesn't work.

MarkKnochen avatar Feb 05 '14 08:02 MarkKnochen

I can confirm the same behavior as @brice and @rawrkats mentioned. I am running sublime-text3 on elementaryos (e.g. Ubuntu 12.04) and installed PhpDoc throuogh Package Control.

hannenz avatar Feb 13 '14 15:02 hannenz

I can also confirm same behavior as @brice @rawrkats amd @hannenz.

ST3, phpDoc from package Control.

Linux version 3.11.0-15-generic (buildd@batsu) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) ) #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013

mmswiderski avatar Feb 16 '14 17:02 mmswiderski

I have reinstalled the package and now it works but it is only working for files with .php extension. I have many .inc files and i am using phpdoc all over my porojects (sass, js, whathaveyou). Is there a way to configure the file extensions or switch of detection completely?

hannenz avatar Feb 20 '14 12:02 hannenz

I had the same issue (Ubuntu:Unity:FR & ST3). I works while I type: "/**" then I go to to menu Edit > Completion. The menu doesn't show the keyboard shortcuts. A friend on Debian:Gnome2:FR & ST2 has the keyboard shortcuts in the menu. It isn't CTRL+SPACE, but ALT+/.

And it works fine ^^

1e1 avatar Apr 11 '14 14:04 1e1

@1e1 TY, works for me too ^_^

Linux Mint 16 “Petra” Cinnamon

mmswiderski avatar Apr 11 '14 14:04 mmswiderski

OSX 10.9.3, Sublime 3 (Stable 3059), installed via Package Manager, same behavior noted by @mmswiderski, @brice, @rawrkats, @hannenz.

jklegseth avatar Jun 22 '14 16:06 jklegseth

@1e1 is right. It works for me on linux mint Alt+/ is the right shortcut. I installed it the packages dir using git clone

damko avatar Aug 19 '14 15:08 damko

XUbuntu 14.04 same problem as @brice /** [tab] produces the following: /** * */

/** [ctrl+space] --> Nothing

/** then going to Edit->Show Completions Produces the expected result. Edit->Show Completions has shortcut alt+/ for auto_completion but it does not works using the shortcut, only works when clicking on menu option.

ST 3 - Package Installed via Package Controll.

ajberasategui avatar Aug 27 '14 05:08 ajberasategui

Not working here

ST Build 3065 Ubuntu 14

I installed it using Package manager. I also tried cloning it. PhpDoc is showing in the "Browse Packages" folder

clicking Ctrl+space just do nothing

kjda avatar Jan 28 '15 15:01 kjda

Same problem here

pablo-sg-pacheco avatar Mar 03 '15 19:03 pablo-sg-pacheco

For me it works with CTRL+Space, but it doesn't with TAB. I'm on Windows 8.

Gliptal avatar Mar 09 '15 08:03 Gliptal

@ajberasategui I had exactly the same problem but the shortcut for Alt+/ works. More precisely, the slash key on the numeric pad doesn't works, instead I use Alt+Shift+/ (the slash near the AltGr key).

toverux avatar Apr 14 '15 16:04 toverux

Same problem here.

JulianaApolo avatar Apr 15 '15 17:04 JulianaApolo

Identical results to ajberasategui. OSX Yosemite 10.10.5.

I have Quicksilver installed, which is over-riding ^-Space. Setting "auto_complete_commit_on_tab": true in user preferences makes no difference. No joy with Alt-Shift-/ or Alt-/

ST3, package installed via package control

piersb avatar Nov 04 '15 16:11 piersb

build:3103 - already there is a snippet in the format /**,tab that produces /** * * */ installing this is not producing expected doc block. :cry: sad.

jinkrish avatar Feb 17 '16 05:02 jinkrish

Ubuntu 16.04, same problem.. solved by typing /**, then ctrl+space and then go down until the /** autocomplete and press TAB. Quite impractical though...

knifesk avatar Mar 03 '17 14:03 knifesk