Comments (3)
hi eysette,
I am not sure how it is possible for there to be an issue! Does it work in the exact same case when you select text? Please try again.
I tested it on my Linux laptop just now and it works fine. The only possibilities I can think of are down to:
- Working on a file that is not an editable markdown file. Were you working on a brand new, unsaved file perhaps?
- The snippet is not fired because there is another keybinding for the same key combination. Do you have another keybinding for
Ctrl
+i
?
To give the background. The shortcut is a keybinding to the built-in snippet Insert italic text
.. The snippet has this body: *${1:${TM_SELECTED_TEXT}}*$0
, which will surround selected text with asterisks. If there is no selected text, it will inserts 2 asterisks and you the cursor will be between the asterisks. The only issue for this shortcut is whether the keybinding triggers the action or not.
To troubleshoot yourself:
- Test the keybinding fires when you hit
Cmd
+i
, if this works then this extension is doing it job correctly. - Test the snippet yourself with a markdown open, run the command
Insert Snippet
and chooseInsert italic text
from vscode-markdown-shortcuts.
Thanks for your time!
I have the problem both on my Linux Laptop and my iMac.
I have checked keybindings issues (i still have the problem when i change the keybinding).
The snippet works when I run Insert Snippet
and choose Insert italic text
, even if no text is selected.
But it still doesn't work when no text is selected and i fire the snippet with a keybinding.
On my iMac, an error is displayed : [getWordRangeAtPosition]: ignoring custom regexp '\_?[A-Za-z\u00C0-\u017F]*\_?' because it matches the empty string.
from vscode-markdown-shortcuts.
hi @eyssette
I can't do anything else for you. I can't reproduce the issue.
This extension is just configuration, and nothing has changed in 3 years. It is unlikely an issue with the extension. It is either VS Code has introduced a new issue, or some funky configuration on your end.
I will close the issue for now. If you find out what it is you can let me know.
from vscode-markdown-shortcuts.
Related Issues (6)
- Please consider keeping the supported vscode engine in package.json as low as possible to have bigger audience HOT 2
- Documentation reports a different key binding for 'Insert fenced code block' HOT 1
- A small change to the snippet of "Insert code" for more convenience HOT 1
- Selecting text and converting it? HOT 1
- this is not issue!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-markdown-shortcuts.