Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Smart keyboard shortcut for inserting block

オープン
#1,594 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r, typescript, vscode

調査の方向性

拡張機能による cmd + option + i ショートカットの処理と、R Markdown ブロック用に提案されているコンテキストキーおよびキーバインドから始めてください。R コードブロック内でネストされたブロックの動作を再現し、その後、ショートカットによってその位置でブロックが分割され、ブロック外では既存の挿入動作が維持されることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

feature-request help wanted

Is your feature request related to a problem? Please describe.
When inserting an R code block in a .rmd notebook using the keyboard shortcut cmd + option + i, the behavior is not 'smart' like it is in Rstudio - it 'nests' blocks rather than 'splitting' them.

```{r}
# some code here

# put cursor here

# more code here
```

For example, if you place your cursor at the location noted in the block above, then press cmd + option + i, you get:

```{r}
# some code here

```{r}
```

# more code here
```

This 'nested' syntax is undefined. Instead, it should produce:

```{r}
# some code here

```

```{r}

# more code here
```

I think this can be accomplished by setting a 'context key' in the extension whenever the cursor is in a block, then creating two keybindings, one for inside a block, another for outside a block.

主要言語
TypeScript
スター
1.2k
フォーク
139
平均マージ
19時間 50分
マージ済み PR(30日)
27

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

REditorSupport/vscode-R のほかの issue

REditorSupport/vscode-R の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。