Skip to content

Commit dc4d541

Browse files
committed
0.0.1
0 parents  commit dc4d541

19 files changed

+2459
-0
lines changed

.eslintrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"plugins": [
9+
"@typescript-eslint"
10+
],
11+
"rules": {
12+
"@typescript-eslint/class-name-casing": "warn",
13+
"@typescript-eslint/semi": "warn",
14+
"curly": "warn",
15+
"eqeqeq": "warn",
16+
"no-throw-literal": "warn",
17+
"semi": "off"
18+
}
19+
}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
out
2+
node_modules
3+
.vscode-test/
4+
*.vsix

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint"
6+
]
7+
}

.vscode/launch.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": [
14+
"--extensionDevelopmentPath=${workspaceFolder}"
15+
],
16+
"outFiles": [
17+
"${workspaceFolder}/out/**/*.js"
18+
],
19+
"preLaunchTask": "${defaultBuildTask}"
20+
},
21+
{
22+
"name": "Extension Tests",
23+
"type": "extensionHost",
24+
"request": "launch",
25+
"runtimeExecutable": "${execPath}",
26+
"args": [
27+
"--extensionDevelopmentPath=${workspaceFolder}",
28+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
29+
],
30+
"outFiles": [
31+
"${workspaceFolder}/out/test/**/*.js"
32+
],
33+
"preLaunchTask": "${defaultBuildTask}"
34+
}
35+
]
36+
}

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
},
9+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10+
"typescript.tsc.autoDetect": "off"
11+
}

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
}
19+
]
20+
}

.vscodeignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.vscode/**
2+
.vscode-test/**
3+
out/test/**
4+
src/**
5+
.gitignore
6+
vsc-extension-quickstart.md
7+
**/tsconfig.json
8+
**/.eslintrc.json
9+
**/*.map
10+
**/*.ts

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Change Log
2+
3+
All notable changes to the "rmarkdown" extension will be documented in this file.
4+
5+
## [0.0.1] - 2020-04-12
6+
7+
- Initial release

README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# R Markdown Snippets
2+
3+
This extension provides a few snippets and key bindings for common tasks in `.Rmd` documents, such as inserting code chunks
4+
5+
## Features
6+
7+
### Keyboard Shortcuts:
8+
9+
`Ctrl+Alt+I`(`⌘⌥I`) to insert a code chunk as you would do in RStudio.
10+
11+
### Snippets
12+
13+
14+
#### Cross-referencing
15+
16+
`\ref`: general cross-reference; inserts `\@ref($1)`
17+
`\refsec`: section cross-reference; inserts `Section \@ref($1)`
18+
`\reffig`: figure cross-reference; inserts `Figure \@ref(fig:$1)`
19+
`\reftab`: table cross-reference; inserts `Table \@ref(tab:$1)`
20+
21+
#### Chunks
22+
23+
`\code`: insert a code chunk
24+
`\fig`: insert a chunk using `knitr::include_graphics()` to include an image; hit tabs to conviniently fill out label, `fig.cap` and `out.width`.
25+
26+
27+
<!-- ## Requirements
28+
29+
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
30+
31+
## Extension Settings
32+
33+
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
34+
35+
For example:
36+
37+
This extension contributes the following settings:
38+
39+
* `myExtension.enable`: enable/disable this extension
40+
* `myExtension.thing`: set to `blah` to do something
41+
42+
## Known Issues
43+
44+
Calling out known issues can help limit users opening duplicate issues against your extension.
45+
46+
## Release Notes
47+
48+
Users appreciate release notes as you update your extension.
49+
50+
### 1.0.0
51+
52+
Initial release of ...
53+
54+
### 1.0.1
55+
56+
Fixed issue #.
57+
58+
### 1.1.0
59+
60+
Added features X, Y, and Z. -->

images/icon.png

20.9 KB
Loading

0 commit comments

Comments
 (0)