Skip to content

Commit dfd68f1

Browse files
committed
Update Readme
1 parent 173cb83 commit dfd68f1

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
11
# Snippet Copy
22

33
Ever wanted to copy part of a source file as a snippet and paste it somewhere else, like in Slack or in a GitHub comment?
4-
Previously, you either got a bunch of unnecessary indentation that made the snippet ugly to read or you had to manually un-tab the snippet, copy, and then reset the indentation.
54

5+
Previously, you either got a bunch of unnecessary indentation that made the snippet ugly to read or you had to manually un-tab the snippet, copy, and then reset the indentation.
66
With **Snippet Copy** you can automatically get a snippet added to your clipboard with all the unnecessary indentation already removed!
77

88
## Features
99

10-
You can use the extension via a bunch of different ways:
10+
All features can be used via different ways in VS Code
1111

12-
- Via the Command Palette and the pre-configured keyboard shortcut
12+
- ⌨️ The **Command Palette** and the pre-configured **Keyboard Shortcuts**
1313

1414
![Command in Command Palette](images/command-palette.png)
1515

16-
- Via the Context Menu on selected text in the editor
16+
- 📝 The **Context Menu** on selected text in the editor
1717

1818
![Command in Context Menu](images/context-menu.png)
19+
20+
### Copy Snippet Without Leading Indentation
21+
22+
Simply get a copy of your currently selected code or text snippet added to your clipboard – without any unnecessary indentation that you would otherwise need to remove manually.
23+
24+
### Copy Snippet Without Leading Indentation as Markdown Code Block
25+
26+
This command has an additional configuration option that let's you determine if the Markdown code block should contain the file's language identifier which enables [syntax highlighting](https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting) in some places:
27+
28+
```json
29+
"snippet-copy.addLanguageIdToMarkdownBlock": false // Default is false
30+
```

0 commit comments

Comments
 (0)