You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何编辑Android Studio的「New」菜单并移除其中的元素?

Hey there! Totally get where you're coming from—Android Studio's New menu can get cluttered real quick, especially as you install more plugins or juggle different project types. Let's break down exactly how you can trim it down to only the stuff you actually use.

1. Quick Cleanup: Remove Unwanted File Templates

Most of the bloat in the New > File submenu comes from pre-installed or plugin-added file templates you never touch. Here's how to turn them off:

  • Open Android Studio, head to File > Settings (use Ctrl+Alt+S on Windows/Linux, Cmd+, on Mac for a shortcut)
  • Navigate to Editor > File and Code Templates
  • Switch to the Files tab—this lists every template that shows up in your New > File menu
  • Uncheck the box next to any template you don't need (like HTML File, XML File if you rarely work with web stuff, or random plugin-added templates)
  • Hit Apply then OK, and your menu will shrink right away
2. Full Menu Control: Customize Entire Menu Entries

If you want even more precision—like removing whole top-level New menu items (not just file templates) or rearranging things—use the menu customization tool:

  • Go to File > Settings > Appearance & Behavior > Menus and Toolbars
  • In the left pane, expand Main Menu > File > New—this shows every single item in your New menu, from Activity to File to plugin-specific entries
  • To remove an item, select it and click the - button at the top-right corner
  • You can also rearrange items with the up/down arrows, or add custom entries if you want to prioritize your go-to options

Pro tip: If you ever overdo it and want to reset everything, just click the Restore Defaults button to get back to the original menu layout

3. Tackle Plugin-Added Clutter

Sometimes random menu entries pop up because of third-party plugins you installed. Here's how to fix that:

  • Go to File > Settings > Plugins
  • Scan the list for plugins that might be adding those unwanted menu items (for example, a Flutter plugin adds Flutter-specific New options)
  • Either disable the plugin if you don't use it anymore, or check if the plugin has its own settings to hide those extra menu entries

That should cover all the ways to slim down your New menu to be way more manageable. No more scrolling through a mile of options just to create a simple Kotlin class!

内容的提问来源于stack exchange,提问作者Adam Varhegyi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.27 17:07:41