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
Use with other commands in macros(vs code extension) #45
Comments
I've edited your issue text. If you wrap the text in triple back-ticks, then it will preserve your indentation:
More instructions: https://guides.github.com/features/mastering-markdown/ |
@zhongjimeiying I don't think macros are built into VSCode. What are you using to create macros? Edit: just realized you said it was an extension. This seems like more of a problem with the |
@kbrose I think so. If your extension provide the the command -- {1.move cursor to line end 2.execute this extension script}, and bind it to shortcuts {Shift+Enter}, will be more useful. |
If this is a problem with the macros library, then I encourage you to also open an issue there. Shift+Enter is already a widely used shortcut to run the selected python code in the terminal. I'm not comfortable overwriting that shortcut by default. However, I would review a Pull Request that adds an additional command I want to be clear that I won't probably will not add this feature myself any time soon. |
@kbrose ok, thank you. |
According to your words, I find the solution. That's a problem of macros extension indeed by viewing its issues. And I found another extension -- |
I’m glad you were able to find a solution that works for you! |
I used to use Shift+Enter to insert a newline after current line, but the newline still has same indent with previous line, even the previous line is a Return Statement. So I want to use this indent etension to solve it. My idea is use macros and config the order like that:
and bind this command with keyboard shortcuts Shift+Enter, but the result is not satisfied. It executes "pythonIndent.newlineAndIndent" firstly, and then executes "cursorEnd", I don't know why order is changed and want know whether this idea can be realize.
The text was updated successfully, but these errors were encountered: