Add ability to run code from @examples in Roxygen lines

オープン
#147 コメント 17 件 リアクション 13 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

このissueではファイルもテストも指定されていません。まず、VS Code拡張機能のCtrl/Cmd+Enterの実行経路と、Roxygenタグが付けられた実行可能なテキストをどのように選択するかを追跡してください。説明されているRStudioの動作と同様に、例の行にカーソルを置くとそのコードが実行され、続く例ではない行は送信されなければ完了です。

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

説明

enhancement

In RStudio, a really neat feature is the ability to run code written next to Roxygen tage (#') by using Ctrl (Cmd) + Enter. The Roxygen tags do not get sent to the console. In VSCode I have to highlight the code and hit Ctrl (Cmd) + Enter. Not a particularly huge concern, but a nice to have.

An example:

#' print("hello world")
my_fun <- function() ...

Having the cursor on the first line and hitting Ctrl (Cmd) + Enter would produce [1] "hello world" in RStudio but in VSCode it would send my_fun to the console.

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

REditorSupport/vscode-R のほかの issue

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

似ている issue

TypeScript の issue をもっと見る

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

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