Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 98955

Visual Studio Code - Include context in search results

$
0
0

Is there a way to show context for search results in Visual Studio Code?

By default, if I search "debug" for example I might get 2 lines of code returned.

filea.rb
  def debug(str)
fileb.js
  function debug(str) {

I want to see what the code is for, say, 3 lines above and below each match.

filea.rb
  def somefunca
    puts "some func a"
  end

  def debug(str)
    puts str.inspect
  end

  def somefuncb

Is it possible to add context like this to the search results?


Viewing all articles
Browse latest Browse all 98955

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>