Programming

Visual Studio에서 줄 번호 표시를 사용하도록 설정

procodes 2020. 6. 13. 20:06
반응형

Visual Studio에서 줄 번호 표시를 사용하도록 설정


Visual Studio에서 소스 파일에 줄 번호를 표시하는 방법이없는 이유는 무엇입니까? 그것을 가능하게하는 방법이 있습니까, 아니면 그것을위한 플러그인이 있습니까? 프로그램의 코드 줄 수는 중요하지 않지만 때로는 프로그램의 길이 또는 참조 할 특정 줄의 수를 아는 것이 좋습니다.

시도했지만 줄 번호 매기기를 활성화하는 방법을 찾지 못하는 것 같습니다.

Visual Studio 2010 Ultimate입니다. (이전 질문을 읽은 경우 지금까지 2008 Express를 사용해 왔습니다.)


Visual Studio에는 줄 번호가 있습니다.

도구-> 옵션-> 텍스트 편집기-> 모든 언어-> "행 번호"확인란을 선택하십시오.


Visual Studio 2015부터 다음 옵션을 찾을 수 있습니다.

Tools-> Options -> Text Editor -> All Languages-> General -> Line Numbers

Visual Studio 2013 줄 번호 옵션 메뉴


또는 단순히 이동 tools -> options과에 입력 검색 창 : "번호".


도구-> 옵션-> 모든 설정 표시-> 텍스트 편집기-> 모든 언어-> 줄 번호


Visual Studio 2013 및 2015에서 :

도구-> 옵션-> 텍스트 편집기-> 모든 언어-> 줄 번호 확인 여기에 이미지 설명을 입력하십시오


기본적으로 활성화되어 있지 않지만 다음으로 이동하여 활성화 할 수 있습니다.

  1. 도구를 클릭하십시오
  2. 옵션
  3. 텍스트 편집기 (확장)
  4. 모든 언어
  5. 줄 번호 (확인란)
  6. 확인을 클릭하십시오

설정


VS 2010에서 :

도구> 설정> 전문가 설정

그때:

도구> 옵션> 모든 설정 표시> 텍스트 편집기> C #> 일반> 행 번호 확인 (확인란)


Visual Studio 2015 enterprice

도구-> 옵션-> 텍스트 편집기-> 모든 언어-> 줄 번호 확인

https://msdn.microsoft.com/en-us/library/ms165340.aspx여기에 이미지 설명을 입력하십시오


옵션-> 텍스트 편집기-> 모든 언어-> 줄 번호 확인란 여기에 이미지 설명을 입력하십시오


Are you talking about seeing the line numbers or knowing the total number of lines in a project? Here is the 1st one


Line numbers are not on by default. To turn on line numbers just go to Tools -> Options -> Text Editor -> All Languages -> General -> Display and check Line numbers:

http://blogs.msdn.com/blogfiles/zainnab/WindowsLiveWriter/TurnonLineNumbers_A5E7/image_thumb.png


For me, line numbers wouldn't appear in the editor until I added the option under both the "all languages" pane, and the language I was working under (C# etc)... screen capture showing editor options


Type 'line numbers' into the Quick Launch textbox (top right VS 2015), and it'll take you right where you need to be (tick Line Numbers checkbox).


For MS Visual Studio 2015 type "Text" in Quick Launch (Ctrl+Q) of top right corner. 1) quicklaunch

2) In the list select Text Editor->All Languages->General select_allLanguages

3) Now check on "Line Numbers" and click OK to get the line numbers.

Finally we get the line number in text editor.


In Visual Studio 2010 Express, there is an option called "Show all Settings". Located at "Tools > Options", window.

여기에 이미지 설명을 입력하십시오

If this option is not checked, the line number option will not be available. Make sure this option is checked like shown below. This will make lot of additional settings visible in the tree view to the left.

여기에 이미지 설명을 입력하십시오

Now this will make the option "Tools > Options > Text Editor > C# > General > Line Editor" available. Check the "Line Number" option to make line numbers visible on Visual Studio 2010 Express.

여기에 이미지 설명을 입력하십시오


You should edit "settings.json". In that add, "editor.lineNumbers":"on", . You can check comments for various options you have.

In Visual Studio Code - 2017, you can also directly go to a given line number. There are following three ways to do that.

  1. Directly use keyboard shortcut - Ctrl + G.
  2. Under menu Go, use Go to Line - Go > Go to Line
  3. Search for Go to Line in Command Pallete (Cmd + Shift + P).

참고URL : https://stackoverflow.com/questions/2706910/enable-the-display-of-line-numbers-in-visual-studio

반응형