Skip to content

The hashpipe (#|) shortcut #528

Answered by cscheid
camilogarciabotero asked this question in Q&A
Discussion options

You must be logged in to vote

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!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cscheid
Comment options

@camilogarciabotero
Comment options

Answer selected by cscheid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants