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

Add a shortcut to create a new cell #7609

Closed
isalirezag opened this issue Aug 2, 2018 · 11 comments
Closed

Add a shortcut to create a new cell #7609

isalirezag opened this issue Aug 2, 2018 · 11 comments

Comments

@isalirezag
Copy link

Is ther any shortcut to create cell (# %%)?

@ccordoba12
Copy link
Member

No, there isn't and since it's very simple to create a cell, we don't plan to add it, sorry.

@mluerig
Copy link

mluerig commented Apr 5, 2024

sorry for diggin this up again - has your opinion on this changed since then? some people make heavy use of cells to order their code, and the hash and percent are really far apart on most keyboards, so you would need to use both hands - this breaks flow!

alternatively, is there a way to add any sequence of characters into the script?

@ccordoba12
Copy link
Member

Hey @mluerig, thanks for bringing this up again to our attention. Since we're going to have a new button to create cells in Spyder 6, we can attach a shortcut to it to have this functionality.

Any suggestions for the shortcut?

@mluerig
Copy link

mluerig commented Apr 11, 2024

great news!

maybe CTRL + 2, since 1 is toggle comment? I think of code cells as in structuring elements, like comments, to annotate code, so I think it might be meaningful to have it close by. but not super imporant since we can always modify the shortcut to our needs...

is the button going to be "toggle" or "insert" code cell?

@ccordoba12 ccordoba12 changed the title shortcut to create cell ? Add a shortcut to create a new cell Apr 11, 2024
@ccordoba12
Copy link
Member

maybe CTRL + 2, since 1 is toggle comment?

You'll be pleased to know what I just found out: the new button to create cells already has a shortcut and it's precisely Ctrl+2!

image

So, I'd say this issue is already solved.

is the button going to be "toggle" or "insert" code cell?

Insert cell. Is that ok?

@ccordoba12 ccordoba12 modified the milestones: v6.1.0, v6.0alpha5 Apr 11, 2024
@dalthviz
Copy link
Member

Just in case, the PR that probably fixed this: #20509

@mluerig
Copy link

mluerig commented Apr 11, 2024

wow, minds thinking alike 👍

Insert cell. Is that ok?
I think so. need to try first

@ccordoba12
Copy link
Member

I think so. need to try first

Ok, I'm going to close this issue for now. Please open a new one once Spyder 6 is released if that's not the behavior you'd expect.

@ghost
Copy link

ghost commented Jun 25, 2024

I am so sorry, but I can't find this button or cntrl+2 to create cells in spyder version 5.5.5
thank you

@ccordoba12
Copy link
Member

That button will be available in Spyder 6, to be released in a month or so.

@ghost
Copy link

ghost commented Jun 25, 2024

That button will be available in Spyder 6, to be released in a month or so.

Thank you very much. You and the team are amazing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants