vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

vscode-ext: Toggle header/source

Open bbenoist opened this issue 10 years ago • 6 comments

Hi,

It would be nice if the vscode C++ extension had a Toggle header/source feature.

Example

Actually, I've already implemented such a feature bbenoist/vscode-togglehs but it would be better if it was directly available from the official extension IMO.

Extension has 939 installs, which means the feature actually has some audience.

bbenoist avatar May 10 '16 10:05 bbenoist

We have this on out plate to add to the extension.

sridmad avatar May 13 '16 21:05 sridmad

I'm using a different extension which uses Alt+O as the shortcut. I think it's a better one then F4, as I don't have to move my hands up ;) This is also Sublime Text's default shortcut :)

jhasse avatar Jun 01 '16 08:06 jhasse

Latest update (0.7.0) has source / header toggle. F4 is the short cut. We will think about adding Alt+O as an alternate shortcut.

sridmad avatar Jun 25 '16 00:06 sridmad

+1 for Alt+O. Is this something I can configure from a file?

mohsinhasan avatar Jun 26 '16 22:06 mohsinhasan

https://code.visualstudio.com/docs/customization/keybindings - see Customizing Shortcuts section

I have added Alt+O as an alternate binding for Switching between header and source. It should appear in 0.8.0 of the extension

sridmad avatar Jun 28 '16 19:06 sridmad

Sweet! Much appreciated.

-M

On Jun 28, 2016 12:43 PM, "sridhar madhugiri (msft)" < [email protected]> wrote:

https://code.visualstudio.com/docs/customization/keybindings - see Customizing Shortcuts section

I have added Alt+O as an alternate binding for Switching between header and source. It should appear in 0.8.0 of the extension

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/vscppsamples/issues/42#issuecomment-229160102, or mute the thread https://github.com/notifications/unsubscribe/ABNy_nGOXG5nJCC5kVGvzjlSqsU5fyTiks5qQXlkgaJpZM4Ia9_c .

mohsinhasan avatar Jun 28 '16 19:06 mohsinhasan