Programing

Eclipse의 패키지 탐색기에서 트리 항목의 글꼴 크기를 어떻게 구성 할 수 있습니까?

lottogame 2020. 7. 11. 09:59
반응형

Eclipse의 패키지 탐색기에서 트리 항목의 글꼴 크기를 어떻게 구성 할 수 있습니까?


Eclipse의 패키지 탐색기 / 개요에서 트리 항목의 글꼴 크기를 어떻게 구성 할 수 있습니까?

환경 설정 에서 글꼴의 어떤 항목을 변경해야합니까?


2010 년에는 Eclipse에서 패키지 탐색기 및 기타보기에 사용되는 글꼴을 변경할 방법이 없었습니다. 편집기보기의 글꼴 만 변경할 수 있습니다. 이는 Eclipse 개발자 측의 정책 결정입니다 (예 : 버그 49548 , 202091 참조 ). 사용되는 글꼴은 사용중인 데스크탑에 대한 일반적인 모양과 느낌으로 설정된 글꼴입니다.

Linux에서는 Eclipse를 호출 할 때 시스템 글꼴을 대체 할 수 있습니다. 다양한 가능성에 대한 훌륭한 글이 여기에 있습니다 . 나는 후손에 대한 한 가지 제안을 반복 할 것이다. gtkrc-eclipse라는 파일을 작성하십시오.

style "eclipse" {
  font_name = "Sans Condensed 8"
}
class "GtkWidget" style "eclipse"

그런 다음 일식을 호출 할 때 특정 환경 변수를 설정하십시오.

$ GTK2_RC_FILES=gtkrc-eclipse eclipse

Eclipse .ini 파일에 'smallFonts'에 대한 참조가 포함되어 있습니까? Mac에서는 다음과 같은 것을 볼 수 있습니다.

-Dorg.eclipse.swt.internal.carbon.smallFonts

이 줄을 제거하면 다양한보기에서 글꼴 크기가 늘어납니다.


Windows 7에서는 다음으로 이동하여 프로젝트 탐색기를 포함하여 많은 Eclipse GUI 글꼴에 영향을 줄 수 있습니다.

제어판 → 개인 설정창 색 및 모양고급 모양 설정

"메시지 상자"의 글꼴 크기를 변경하십시오.

물론 이것은 OS에서 다른 것들의 모양으로 혼란스럽지 만 프로젝트 탐색기에서 squinting에 비해 견딜 수 있음을 발견했습니다 ...


방금 Eclipse에서 트리보기 글꼴 크기를 변경하는 것에 대한 모든 대답을 찾았고 몇 가지를 시도해 보았고 마침내 CSS 클래스를 사용하여 나에게 훨씬 더 유행했습니다.

사용중인 테마에는에 "e4_basestyle.css"가 포함되어 eclipse/opt/plugins/platform/css있습니다. 거기에 내가 추가

.MPart Tree {
    font-size: 10;
}

그것은 나와 잘 작동합니다 (우분투의 Eclipse v4.3-SR2 (Kepler)).


Diego V에서 제안한 내 Windows7 컴퓨터에서 작동하는 옵션은 다음과 같습니다 . https://stackoverflow.com/a/15011440/1713920

Juno에서는 CSS로 해당 글꼴을 조정할 수 있습니다.

현재 스타일 시트 (아마도 e4_default_win7.css)에 대해 eclipse \ plugins \ org.eclipse.platform_4.2.xy \ css에서 파일을 찾은 후 다음 규칙을 추가하십시오.

#org-eclipse-jdt-ui-PackageExplorer Tree,
#org-eclipse-ui-navigator-ProjectExplorer Tree {
    font-size: 10px; /* <-- Desired font size */
}

이 답변은 Mac OS X 사용자에게 적용됩니다. Mavericks (10.9.2)로 테스트되었지만 모든 버전에서 작동합니다.

이전 답변에서 언급했듯이 패키지 탐색기에서 글꼴 크기를 변경하려면 시스템 글꼴 크기를 변경해야합니다. 여기서 문제는 정확히 이것을하는 것입니다. 내 해결책 :

  1. 무료 Tinker Tool 유틸리티를 다운로드하고 글꼴 크기를 조정하십시오.
  2. 이클립스 다시 시작

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

결과 :

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

행복한 코딩!


로 이동하십시오 eclipse/plugins/org.eclipse.ui.themes_1.1.0.v{HERE_SOME_DIGITS}\css.

설치된 테마 CSS 파일을 볼 수 있습니다. 테마를 선택하고 파일 끝에 추가하십시오 (예 e4_default_win7.css:) :

#org-eclipse-jdt-ui-PackageExplorer Tree,
#org-eclipse-ui-navigator-ProjectExplorer Tree {
    font-size: 10px; /* <-- Desired font size */
    font: Consolas;  /* <-- Font you want to have */
}

Windows 7에서 Eclipse v4.4 (Luna) 및 Eclipse v4.5 (Mars)로 테스트되었습니다.


Linux에서 기본 제공 어두운 테마를 사용하는 Eclipse v4.5 (Mars)

eclipse/plugins/org.eclipse.ui.themes_1.1.0.v20150511-0913/css/dark/e4-dark_globalstyle.css

204 행 주위에 선택한 글꼴 크기를 추가 할 수 있습니다.

background-color: #2F2F2F;
color: #CCC;
font-size: 8;

누군가 이미 앞에서 언급했듯이 "e4_basestyle.css"파일을 수정하면 Eclipse v4.3 (Kepler) 및 Windows 8에서 효과가있었습니다.

또한 아래의 텍스트 크기 / 스타일도 변경해야합니다.

환경 설정힘내LabelDecorations

또는

Git 섹션 아래 환경 설정모양ColorsAndFonts

커밋되지 않은 파일의 텍스트 크기 / 색상이 변경 내용과 동기화되도록합니다. 물론 프로젝트를 저장소로 초기화하는 경우에도 마찬가지입니다.


참고 사항 :

Eclipse v4.4 (루나)에서 :

CSS 파일이 더 이상 이전 폴더에없는 것 같습니다.

eclipse/plugins/org.eclipse.platform_4.x.x.vy/css

새 폴더로 이동됩니다.

 eclipse/plugins/org.eclipse.ui.themes_x.x.x.vxxxxx/css

메뉴에서 적용 할 테마를 선택해야합니다

Windows환경 설정일반모양


Eclipse는 운영 체제에서 GUI 항목의 글꼴 크기를 상속합니다. 예를 들어 데모의 경우 OS의 글꼴 크기를 늘리고 싶을 수 있습니다.


Eclipse는 프로젝트 탐색기에 시스템 사용자 인터페이스 글꼴을 사용하므로 OS 별 방법으로 글꼴을 변경할 수 있습니다. 참고 : 다른 앱이 글꼴 변경에 즉시 응답하더라도 Eclipse를 다시 시작해야합니다.

  • Linux (Gnome)에서는 Gnome Tweak Tool (Applications → Utilities → Tweak Tool)을 사용하여 Eclipse 글꼴을 변경할 수있었습니다. 아직 설치되지 않은 경우sudo yum install gnome-tweak-tool또는을시도하십시오sudo apt-get install gnome-tweak-tool. 에서 글꼴 페이지에서 변경 인터페이스 글꼴을.
  • Windows 7의 경우 제어판 → 개인 설정 → 창 색 및 모양 → 고급 모양 설정 → "메시지 상자"의 글꼴 크기 변경으로 이동하십시오. (신용 : Nathan Monteleone)
  • Mac 에서 Tinker Tool의 압축을 풀고실행 한 다음 글꼴 탭으로이동하여 도움말 태그 의 크기를 조정하십시오(Eclipse 2018-12에서 테스트).

시작 대화 상자와 같은 Eclipse의 다른 부분도 영향을받습니다.


Windows 10에서는

왼쪽 하단에서 Windows 기호를 클릭하고 "디스플레이 설정"을 입력 한 다음 "고급 디스플레이 설정"으로 이동 한 다음 "고급 텍스트 및 기타 항목 크기 조정"으로 이동합니다. "텍스트 크기 만 변경 ":

당신은의 목록을 볼 수 있습니다

  • 제목 표시 줄
  • 메뉴
  • 메시지 박스
  • 팔레트 제목
  • 아이콘
  • 툴팁

최소한 "메시지 상자"를 글꼴 크기로 전환하십시오 (예 : 9 대신 13) (Eclipse 패키지 탐색기 트리의 경우).

"메뉴"도 글꼴 크기 13 (Eclipse 기본 메뉴)으로 전환합니다.

또는 그들 모두 :-)


다음 솔루션은 Eclipse v4.4 (Luna)가 설치된 Mac OS에서 작동합니다.

Mac 모양 : 메뉴 환경 설정일반모양테마 : Mac을 선택하십시오 .

에 포함 된 다음 코드 스 니펫의 사본을 추가하십시오.

plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/dark/e4-dark_globalstyle.css

파일의 끝까지

plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/e4_default_mac.css.


Tree,
RegistryFilteredTree,
/* The following are required due to Bug 419482 (see <1>): */
Composite > Tree,
TabFolder > Composite > Tree,
TabFolder > Composite > * > Tree,
DocCommentOwnerComposite > Group > Tree,
TabFolder > Composite > ScrolledComposite > Tree,
Shell > Composite > Composite > Tree,
Composite > Composite > Composite > Group > Tree,
Shell > Composite > Composite > Composite > Tree,
ScrolledComposite > Composite > Composite > Composite > Tree,
Shell > Composite > Composite > Composite > Composite > Composite > Tree,
Shell[style~='SWT.RADIO'][style~='SWT.CASCADE'][style~='SWT.SHADOW_ETCHED_IN']
[style~='SWT.SHADOW_ETCHED_OUT'][style~='SWT.RESIZE'][style~='SWT.MENU']
[style~='SWT.FULL_SELECTION'][style~='SWT.DATE'] > Composite > Tree, Shell[style~='SWT.RADIO']
[style~='SWT.CASCADE'][style~='SWT.SHADOW_ETCHED_IN'][style~='SWT.SHADOW_ETCHED_OUT']
[style~='SWT.RESIZE'][style~='SWT.MENU'][style~='SWT.FULL_SELECTION'][style~='SWT.DATE'] > Composite > * > Tree {
    font-size: 13;
}

Mac 사용자의 경우 :

파일에서 :

plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/dark/e4-dark_globalstyle.css

이 코드 스 니펫을 찾으십시오.

Shell[style~='SWT.RADIO'][style~='SWT.CASCADE'][style~='SWT.SHADOW_ETCHED_IN']
[style~='SWT.SHADOW_ETCHED_OUT'][style~='SWT.RESIZE'][style~='SWT.MENU'][style~='SWT.FULL_SELECTION']
[style~='SWT.DATE'] > Composite > * > Tree {

    background-color: #2F2F2F;
    color: #CCC;
}

글꼴 크기에 대한 정보를 추가하여 수정하십시오.

Shell[style~='SWT.RADIO'][style~='SWT.CASCADE'][style~='SWT.SHADOW_ETCHED_IN']
[style~='SWT.SHADOW_ETCHED_OUT'][style~='SWT.RESIZE'][style~='SWT.MENU'][style~='SWT.FULL_SELECTION']
[style~='SWT.DATE'] > Composite > * > Tree {

    background-color: #2F2F2F;
    color: #CCC;
    font-size: 13;
}

이 예제는 Eclipse v4.4 (Luna)의 Dark 테마에 대한 것입니다.


우분투, 이클립스 v4.4 (루나) *

  1. 당신의 위치를 ​​찾으십시오 : eclipse/plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css
  2. Eclipse UI에서 환경 설정일반모양에 따라 사용중인 CSS 파일을 선택하십시오 .
  3. 안전을 위해 Eclipse를 먼저 닫은 후 원본을 백업하고 다음과 같은 것을 추가하십시오.

    .MPart Tree {글꼴 크기 : 14; }

* Eclipse v4.4 (Luna)의 ScalaIDE 버전 에서 수행되었으며 일반 Eclipse v4.4 (Luna)와 동일해야합니다.


Windows 10에서 크리에이터 업데이트에 영향을받은 경우 :

Windows 10 Creators Update는 "디스플레이 설정"에서 "텍스트 크기 만 변경"기능을 제거했습니다. 또한 업데이트는 이전 텍스트 크기 설정을 재설정하여 패키지 탐색기의 트리 항목에서 작은 글꼴 크기로 끝났습니다.

나를 위해 일한 해결책은 작은 도구 'A + System Font Size Changer'를 사용하는 것입니다. 여기서 "메시지 상자"설정을 4 (도구로 정의 된 사용자 정의 단위)로 늘리고 설정을 적용하면 패키지 탐색기의 항목에서 글꼴 크기가 변경되었습니다.

이 도구를 사용하면 "메뉴", "제목 표시 줄", "팔레트 제목", "아이콘"(Windows 탐색기의 폴더 표시에 놀라운 효과) 및 "도구 설명"의 크기를 늘릴 수 있습니다.

추신 : Hartmut의 답변에 대해 언급하고 싶었지만 평판 점수가 너무 낮습니다.


Windows 서버에서

제어판-> 디스플레이 섹션으로 이동하십시오. 디스플레이 섹션기본 설정이 그림과 같이 작을 경우 수요에 따라 크기를 변경할 수 있으며 옵션으로 특정 텍스트 크기 만 변경할 수 있습니다

참고 : Eclipse 기반 플랫폼뿐만 아니라 시스템 설정에 따라 적용됩니다.


To change fonts in eclipse workspace with ubuntu, I modified system fonts desktop > system > preferences > appearance > fonts also modified eclipse indigo -> windows > preferences > General > Appearances > Colors and fonts. It reflected in eclipse.


In Windows 8,

  1. go to Control Panel -> Appearance and Personalization -> Display
  2. In the middle of the screen there is a drop down under the heading Change Only the Text Size, select Message bokes.
  3. Change the font size in the adjacent drop down.

In Eclipse v4.2 (Juno) you can modify the CSS by going to menu WindowPreferencesGeneralAppearances.

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


In Eclipse v4.4 (Luna) Service Release 2 (4.4.2) under Windows 7:

If you select the "Windows" theme (Eclipse default configuration)

[Window => Preferences => General->Appearance -> Theme: Windows]

You could add the following code snippet into below css file.
[Eclipse root folder]\plugins\org.eclipse.ui.themes_x.x.x.vxxxxxxxx-xxxx\css\e4_default_win7.css

Tree,
RegistryFilteredTree,
/* the following are required due to Bug 419482 (see <1>): */
Composite > Tree,
TabFolder > Composite > Tree,
TabFolder > Composite > * > Tree,
DocCommentOwnerComposite > Group > Tree,
TabFolder > Composite > ScrolledComposite > Tree,
Shell > Composite > Composite > Tree,
Composite > Composite > Composite > Group > Tree,
Shell > Composite > Composite > Composite > Tree,
ScrolledComposite > Composite > Composite > Composite > Tree,
Shell > Composite > Composite > Composite > Composite > Composite > Tree,
Shell[style~='SWT.RADIO'][style~='SWT.CASCADE'][style~='SWT.SHADOW_ETCHED_IN'][style~='SWT.SHADOW_ETCHED_OUT'][style~='SWT.RESIZE'][style~='SWT.MENU'][style~='SWT.FULL_SELECTION'][style~='SWT.DATE'] > Composite > Tree,
Shell[style~='SWT.RADIO'][style~='SWT.CASCADE'][style~='SWT.SHADOW_ETCHED_IN'][style~='SWT.SHADOW_ETCHED_OUT'][style~='SWT.RESIZE'][style~='SWT.MENU'][style~='SWT.FULL_SELECTION'][style~='SWT.DATE'] > Composite > * > Tree {
    font-size: 13;
}

The value of font-size could be set as wish.

If you install other customized theme packages such as the Eclipse Moonrise UI Theme from Eclipse Marketplace, there will be the JAR file under [Eclipse root folder]\plugins
(Example: com.github.eclipseuitheme.themes.moonrise-ui_0.8.9.201404052318.jar)

Modify below the CSS files in this JAR file
\themes\css\moonrise-ui-standalone.css and moonrise-ui-standalone_WIN.css
There is similar code section in these CSS files starting with:

Tree,
RegistryFilteredTree,

"font-size : 13;"을 추가하십시오 위의 코드 스 니펫과 같이 아래 단계를 통해 적용하십시오.

메뉴 환경 설정일반모양테마 : MoonRise (독립형)


작은 화면과 큰 화면이 있습니다. Eclipse는 "메인 화면"의 크기 설정을 사용하고 있습니다. 제 경우에는 150 %의 배율로 작은 화면이었습니다.

메인 화면을 큰 화면으로 전환하면 크기 문제가 해결되었습니다.

참고 URL : https://stackoverflow.com/questions/3124629/how-can-i-configure-the-font-size-for-the-tree-item-in-the-package-explorer-in-e

반응형