Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcut for Format Document(Ctrl+Shift+I) not Functioning #28834

Closed
Hygens opened this issue Jun 15, 2017 · 12 comments
Closed

Shortcut for Format Document(Ctrl+Shift+I) not Functioning #28834

Hygens opened this issue Jun 15, 2017 · 12 comments
Assignees
Labels
info-needed Issue requires more information from poster keybindings VS Code keybinding issues

Comments

@Hygens
Copy link

Hygens commented Jun 15, 2017

  • VSCode Version: 1.13.1
  • OS Version: LMDE2 - Linux Mint Debian Edition (Debian 8 based)

Steps to Reproduce:

  1. Open one document and execute the shortcut: Ctrl+Shift+I.
  2. The result is open search box and not format document.
@ramya-rao-a
Copy link
Contributor

@Hygens Did you set the Ctrl+Shift+I keybinding yourself?

@ramya-rao-a ramya-rao-a added the info-needed Issue requires more information from poster label Jun 15, 2017
@Hygens
Copy link
Author

Hygens commented Jun 15, 2017

No. I do not have executed any customizations here for keybinding. I have followed the default documentations for linux shortcut here.
I had downloaded the document with VSCode keybindings for linux and used defaults for all keybindings as below document:
keyboard-shortcuts-linux.pdf

When I use that keybinding show that:
screenshot from 2017-06-15 17-10-29

@ramya-rao-a
Copy link
Contributor

@ramya-rao-a ramya-rao-a added formatting Source formatter issues keybindings VS Code keybinding issues and removed info-needed Issue requires more information from poster labels Jun 16, 2017
@Hygens
Copy link
Author

Hygens commented Jun 16, 2017

I'm sorry but here not working. I have downloaded today the version 1.13.1 and my linux is clean installed today and I do not have executed any customizations for keystrokes here and not working.
If I select the code on document and use Ctrl+K+F ok functioning, but, if possible not need select the document and get document formatted it's better.
More some informations are:

  1. I'm using Cinnamon desktop;
  2. My kernel is: 3.16.0-4-amd64 Open Source VS Code #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux

Exists more some information needed for that or workaround for solve that?!

@ramya-rao-a
Copy link
Contributor

Did this shortcut work before you updated to 1.3.1?

@Hygens
Copy link
Author

Hygens commented Jun 16, 2017

Yes. With VSCode 1.3 was ok. But I have installed one clean environment with LMDE2(Debian Jessie based) and after that installed tha last version of VSCode 1.13.1. After that not working. I'm new with VSCode because I'm commonly use Vim or Spacemacs. I'm testing that editor because it's better with for example Atom for me and more easy for configurations and use. About that problem I will be analysing here what is the problem because need two keystrokes for format source(Ctrl+A/Ctrl+K+F) not productive that. I have attempted beautify plugins but most of them give problems in vscode and for that I'm using default configuratios because is enough for me.

@jrieken
Copy link
Member

jrieken commented Jun 16, 2017

@Hygens

What does VS Code detect when you press the desired key combination? Please hover over the input box and take a screenshot:
keyboard-input

@jrieken jrieken added info-needed Issue requires more information from poster and removed formatting Source formatter issues labels Jun 16, 2017
@Hygens
Copy link
Author

Hygens commented Jun 16, 2017

Here is screenshot for keystroke preference:
screenshot from 2017-06-16 08-33-01
screenshot from 2017-06-16 08-39-36

Interesting but here found three definitions for keystroke(first image) and here is all default since install vscode.
I'm working with MEAN/Angular2 projects, haskell projects, java projects and c/c++ projects.

@jrieken
Copy link
Member

jrieken commented Jun 16, 2017

Please hover over the input box and take a screenshot:

@Hygens If you tools doesn't support screen shooting a hover use a gif recorder. The hover contains the necessary information

@Hygens
Copy link
Author

Hygens commented Jun 16, 2017

Ok, follow below screenshot with hover input box:
screenshot from 2017-06-16 11-12-22

@jrieken
Copy link
Member

jrieken commented Jun 16, 2017

Ok, thanks at lot for that. So it does seem that the physical buttons on your keyboard map to what we have registered for. There two possibilities why this isn't working.

  1. You have no formatter for that language? Check by right-clicking in the file and check the context menu as a Format-entry
  2. Some extension has stolen your keybinding. The screenshot above looks fishing because ctrl+shift+i seems to unconditionally bound to some extension command. Try to disable that.

screen shot 2017-06-16 at 16 51 55

@Hygens
Copy link
Author

Hygens commented Jun 16, 2017

Ok. The questions really is the other keystrokes present for possible extensions using the same keystroke and I have erased all others keystroke for extensions and solved question.
Thank you very much.
You can mark that issue solved or close the same.

@Hygens Hygens closed this as completed Jun 16, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster keybindings VS Code keybinding issues
Projects
None yet
Development

No branches or pull requests

3 participants