ronvanderheijden / vscode-phpdoc-generator

PHPDoc Generator is a VSCode extension that generates a documentation block using a keyboard shortcut.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Control+Enter is not working on VSC for Windows

Charles-II opened this issue · comments

On Visual Studio Code version 1.45.1 the Control+Enter shortcut is not working, no way to use the extension.
Am I missing something?

It is working in

Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:33:47.663Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.5.0

Anyway, you can change this shortcut command phpdoc-generator.generatePHPDoc?

I'm using Visual Studio Code on Windows 7 O.S.
Version: 1.45.1 (user setup)
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:27:35.169Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 6.1.7601

In the extension details you have written: "Looking for the keyboard shotcuts and settings? Search for phpdoc-generator.". Where should I search it?
Where I can find phpdoc-generator.generatePHPDoc?
Thanks

Ah, you are working on Windows. That, I have never tested.

For settings go to or find Preferences -> Settings.
For commands go to or find Preferences -> Keyboard shortcuts.

You can also go to the extension and open the Feature Contributions tab to see all settings and commands.

If I open the command window (using F1) and just type phpdoc-generator no results are found.
I can see the 7 extension settings
There is no way to start it.

A competitor extension is working well but it seems limited compared to yours because there are no custom settings. It would be nice to have it working also on windows O.S.

And under Preferences -> Keyboard shortcuts?

I can find these settings:
{
"key": "ctrl+enter",
"command": "explorer.openToSide",
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
}
and
{
"key": "ctrl+enter",
"command": "search.action.openResultToSide",
"when": "fileMatchOrMatchFocus && searchViewletVisible"
}
and
{
"key": "ctrl+enter",
"command": "workbench.action.submitComment",
"when": "commentEditorFocused"
}

Actually there is also:
{
"key": "ctrl+enter",
"command": "phpdoc-generator.generatePHPDoc",
"when": "editorTextFocus"
}

but it is not working probably because phpdoc-generator.generatePHPDoc command is not found.

I have tested the extension on Windows 10 using a fresh installation of VSCode and only the vscode-phpdoc-generator extension. It is working perfectly.

I would advice you to disable all other extension and check if the problem still occurs.

I think there is an extension conflicting with ours.

@Charles-II
Please, give me your code from that line where you pressed 'ctrl+enter'.

I have got it, probably it was my misunderstanding but it works only with classes not with simple functions!

I made a new issue for this problem: #36