Giter VIP home page Giter VIP logo

vscode-copy-reference-advanced's Introduction

Copy Reference Advanced

Copy selected line number(s) with absolute/relative file path

result e.g. path/to/file.txt:1-10

Hints

  • Line numbers start with 1 by default (see Configuration to change this)
  • if nothing is selected the line of the cursor is taken

Features

Just what the description says: copy line numbers with absolute/relative file path

  • Use ctrl+shift+c to copy the file path & selected line numbers
  • Use ctrl+shift+a to copy the file path & selected line numbers with the wrapping additional texts (see copyReferenceAdvanced.prependToCopiedText and copyReferenceAdvanced.appendToCopiedText)

or

use the command palette search for CopyReference Advanced or CopyReference Advanced with additional text

Configuration

  • copyReferenceAdvanced.lineOffset The line number to start with (this is added to the zero-based value of the line number)
  • copyReferenceAdvanced.pathLineNumberDelimiter The delimiter for the path and line number section e.g. - would give some/path.txt-1-5, : would give some/path.txt:1-5
  • copyReferenceAdvanced.lineNumberDelimiter The delimiter for the line numbers e.g. -- would give 1--5
  • copyReferenceAdvanced.collapseSingleLineNumbers True: when only one line was selected e.g. 16 the output will be 16 without the line number delimiter, false: the output will always include the line number delimiter
  • copyReferenceAdvanced.prependToPath Some string to prepend to the file path
  • copyReferenceAdvanced.appendToPath Some string to append to the file path
  • copyReferenceAdvanced.pathMode : absolutePaths will copy absolute file paths, relativePaths will copy relative file paths if the file is inside a opened workspace folder, relativePathsWithoutFolderName the same as relativePaths but the folder name is removed
  • copyReferenceAdvanced.failIfNoFolderIsOpen If pathMode is set to relative and no folder is open... True: notify warning because we cannot get a relative path (noting is copied), false: just copy the absolute path
  • copyReferenceAdvanced.displayCopiedTimeoutInMs The copied text is displayed as a status bar item for X ms. Use a value <= 0 to always hide the status bar item
  • copyReferenceAdvanced.prependToCopiedText Some text that should be prepended to the whole copied text
  • copyReferenceAdvanced.appendToCopiedText Some text that should be appended to the whole copied text

Known Issues

Release Notes

See Changelog

Install extension locally

https://code.visualstudio.com/Docs/editor/extension-gallery#_common-questions

macOS: ~/.vscode/extensions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.