The hashpipe (#|
) shortcut
#528
-
Hi all, Thanks again for working on this project. I was wondering if there is already a shortcut for the hashpipe ( Cheers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
We have some smarts built in to RStudio: if you type the first hash-pipe and then hit enter, the second one is automatically filled out. But in general, I don't think we have a single shortcut key to get it started. Still, this is an excellent idea. Another good reason to do it is that we should be smart enough to use the right comment syntax in different language cells. For example, in |
Beta Was this translation helpful? Give feedback.
We have some smarts built in to RStudio: if you type the first hash-pipe and then hit enter, the second one is automatically filled out. But in general, I don't think we have a single shortcut key to get it started.
Still, this is an excellent idea. Another good reason to do it is that we should be smart enough to use the right comment syntax in different language cells.
For example, in
ojs
cells, the "hash-pipe" is really a "slash-pipe"://|
. The general syntax is the one-line comment for the particular language, followed by a pipe and a space. We should totally be supporting this in a single shortcut. I'll create a github issue to track. Thank you!