Skip to content

Commit

Permalink
Update README with all addin options
Browse files Browse the repository at this point in the history
  • Loading branch information
erictleung committed Jun 2, 2023
1 parent 8e2253e commit e952d1c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
13 changes: 11 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,18 @@ pip install black

## Usage

In your text editor, highlight the relevant Python code you wish to format.
This addin supports styling with black by:

Then navigate in RStudio to Addins > PYBLACK > Style selection with black.
- highlighted selected code
- entire active file in RStudio

**For select code**, in your text editor, first highlight the relevant Python
code you wish to format. Then navigate in RStudio to Addins > PYBLACK > Style
selection with black.

**For formatting an entire active document**, in your text editor, have your
cursor in an open document you want to format. Then navigate in RStudio to
Addins > PYBLACK > Style active file with black.

## Configuration

Expand Down
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ pip install black

## Usage

In your text editor, highlight the relevant Python code you wish to
format.
This addin supports styling with black by:

Then navigate in RStudio to Addins \> PYBLACK \> Style selection with
black.
- highlighted selected code
- entire active file in RStudio

**For select code**, in your text editor, first highlight the relevant
Python code you wish to format. Then navigate in RStudio to Addins \>
PYBLACK \> Style selection with black.

**For formatting an entire active document**, in your text editor, have
your cursor in an open document you want to format. Then navigate in
RStudio to Addins \> PYBLACK \> Style active file with black.

## Configuration

Expand Down

0 comments on commit e952d1c

Please sign in to comment.