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 bold and italic to surrounding pairs #6

Merged
merged 2 commits into from
Jul 25, 2018

Conversation

nikolasburk
Copy link
Contributor

When writing markdown, I often have the situation that I want to make one word italic or bold. Currently I need to move the cursor to the beginning and end of the word and add the corresponding formatting (_ for italic, ** for bold).

It would be nice if I could just select the entire word and then apply the formatting once.

Note: I added this after I saw how the backticks were added previously. I am not sure if that actually works for the ** - if no I'm happy to update the PR. (Maybe there's some other way to get that kind of convenience though?)

Copy link
Owner

@silvenon silvenon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks! After making a minor adjustment specified below, you could also add this to the official Markdown language configuration because it doesn't have those.

["`", "`"]
["`", "`"],
["_", "_"],
["**", "**"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double asterisks won't work, change them into single asterisks. If you want to surround selected text with double asterisks, simply press the asterisk key twice. 😉

@nikolasburk
Copy link
Contributor Author

I changed the PR to use single asterisks 👍

@silvenon silvenon merged commit 96b7121 into silvenon:master Jul 25, 2018
nikolasburk added a commit to nikolasburk/vscode that referenced this pull request Jul 25, 2018
mjbvz pushed a commit to microsoft/vscode that referenced this pull request Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants