Skip to content

add bold and italic to surrounding pairs#6

Merged
silvenon merged 2 commits intosilvenon:masterfrom
nikolasburk:master
Jul 25, 2018
Merged

add bold and italic to surrounding pairs#6
silvenon merged 2 commits intosilvenon:masterfrom
nikolasburk:master

Conversation

@nikolasburk
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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