Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 更新日志

本文档记录 "Switch2IDEA" 扩展的所有重要更新。
本文档记录 "Switch2JETBRAIN" 扩展的所有重要更新。

## [1.0.0]

Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Switch2IDEA
# Switch2JETBRAIN

[中文](README_zh.md)

> 💡 Recommended to use with [Switch2Cursor](https://github.com/qczone/switch2cursor) in IDEA

[![Visual Studio Marketplace](https://img.shields.io/visual-studio-marketplace/v/qczone.switch2idea?label=VS%20Marketplace&style=for-the-badge&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=qczone.switch2idea)
[![Downloads](https://img.shields.io/visual-studio-marketplace/d/qczone.switch2idea?style=for-the-badge&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=qczone.switch2idea)
[![Visual Studio Marketplace](https://img.shields.io/visual-studio-marketplace/v/qczone.switch2jetbrain?label=VS%20Marketplace&style=for-the-badge&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=qczone.switch2jetbrain)
[![Downloads](https://img.shields.io/visual-studio-marketplace/d/qczone.switch2jetbrain?style=for-the-badge&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=qczone.switch2jetbrain)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)](LICENSE)

## 🔍 Project Overview

A Cursor extension that enhances development efficiency by enabling smooth switching between Cursor and IDEA

![Switch2IDEA Demo](images/switch-show.gif)
![Switch2JETBRAIN Demo](images/switch-show.gif)

## 🌟 Features

Expand All @@ -36,8 +36,8 @@ A Cursor extension that enhances development efficiency by enabling smooth switc

### Method 1: Install from Extension Marketplace

1. Click [here](https://marketplace.visualstudio.com/items?itemName=qczone.switch2idea) to install
2. Search for "Switch2IDEA" in the Cursor extension marketplace and install
1. Click [here](https://marketplace.visualstudio.com/items?itemName=qczone.switch2jetbrain) to install
2. Search for "Switch2JETBRAIN" in the Cursor extension marketplace and install

### Method 2: Local Installation

Expand All @@ -52,18 +52,18 @@ A Cursor extension that enhances development efficiency by enabling smooth switc
#### Open Project

- Shortcut: `Alt+Shift+P`
- Context Menu: Right-click in file explorer → `Open Project in IDEA`
- Context Menu: Right-click in file explorer → `Open Project in Jetbrains`

#### Open Current File

- Shortcut: `Alt+Shift+O`
- Context Menu:
- Right-click in editor → `Open File in IDEA`
- Right-click in file explorer → `Open File in IDEA`
- Right-click in editor → `Open File in Jetbrains`
- Right-click in file explorer → `Open File in Jetbrains`

### Configuration

Open Cursor settings, click `General` → `Editor` → `open editor settings` → `Extensions` → `Switch2IDEA` → `Idea Path`
Open Cursor settings, click `General` → `Editor` → `open editor settings` → `Extensions` → `Switch2JETBRAIN` → `Idea Path`

- macOS: Automatically traverses common IDEA installation paths
- Windows: Default `C:\Program Files\JetBrains\IntelliJ IDEA\bin\idea64.exe`
Expand All @@ -84,7 +84,7 @@ Issues and Pull Requests are welcome to improve this extension.

Please check the following steps:

1. Open Cursor settings, click `General` → `Editor` → `open editor settings` → `Extensions` → `Switch2IDEA`
1. Open Cursor settings, click `General` → `Editor` → `open editor settings` → `Extensions` → `Switch2JETBRAIN`
2. Verify that Idea Path is correctly configured to IDEA's executable path

### 2. Does it support jumping to other IDEs?
Expand All @@ -97,7 +97,7 @@ You can configure IDE paths separately for each workspace:

1. Open Cursor settings, click `General` → `Editor` → `open editor settings`
2. Select the `Workspace` tab
3. Navigate to `Extensions` → `Switch2IDEA` → `ideaPath`
3. Navigate to `Extensions` → `Switch2JETBRAIN` → `ideaPath`
4. Enter the IDE path needed for that project

Configuration examples:
Expand All @@ -114,8 +114,8 @@ This project is licensed under the [MIT License](LICENSE)

If you encounter issues or have suggestions, please provide feedback through:

- [Submit GitHub Issue](https://github.com/qczone/switch2idea/issues)
- [Submit GitHub Issue](https://github.com/qczone/switch2jetbrain/issues)

## 🌟 Star History

[![Star History Chart](https://api.star-history.com/svg?repos=qczone/switch2idea&type=Date)](https://star-history.com/#qczone/switch2idea&Date)
[![Star History Chart](https://api.star-history.com/svg?repos=qczone/switch2jetbrain&type=Date)](https://star-history.com/#qczone/switch2jetbrain&Date)
28 changes: 14 additions & 14 deletions README_zh.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Switch2IDEA
# Switch2JETBRAIN

[English](README.md)

> 💡 推荐在 IDEA 中配合 [Switch2Cursor](https://github.com/qczone/switch2cursor) 使用

[![Visual Studio Marketplace](https://img.shields.io/visual-studio-marketplace/v/qczone.switch2idea?label=VS%20Marketplace&style=for-the-badge&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=qczone.switch2idea)
[![Downloads](https://img.shields.io/visual-studio-marketplace/d/qczone.switch2idea?style=for-the-badge&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=qczone.switch2idea)
[![Visual Studio Marketplace](https://img.shields.io/visual-studio-marketplace/v/qczone.switch2jetbrain?label=VS%20Marketplace&style=for-the-badge&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=qczone.switch2jetbrain)
[![Downloads](https://img.shields.io/visual-studio-marketplace/d/qczone.switch2jetbrain?style=for-the-badge&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=qczone.switch2jetbrain)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)](LICENSE)

## 🔍 项目简介

一个提升开发效率的 Cursor 扩展,让你在 Cursor 和 IDEA 之间实现丝滑切换

![Switch2IDEA演示](images/switch-show.gif)
![Switch2JETBRAIN演示](images/switch-show.gif)

## 🌟 功能特性

Expand All @@ -39,8 +39,8 @@

### 方式一:通过扩展市场安装

1. 点击 [这里](https://marketplace.visualstudio.com/items?itemName=qczone.switch2idea) 安装
2. 在 Cursor 扩展市场中搜索 "Switch2IDEA" 并安装
1. 点击 [这里](https://marketplace.visualstudio.com/items?itemName=qczone.switch2jetbrain) 安装
2. 在 Cursor 扩展市场中搜索 "Switch2JETBRAIN" 并安装

### 方式二:本地安装

Expand All @@ -55,18 +55,18 @@
#### 打开项目

- 快捷键:`Alt+Shift+P`
- 右键菜单:在文件浏览器中右键 → `Open Project in IDEA`
- 右键菜单:在文件浏览器中右键 → `Open Project in Jetbrains`

#### 打开当前文件

- 快捷键:`Alt+Shift+O`
- 右键菜单:
- 在编辑器中右键 → `Open File in IDEA`
- 在文件浏览器中右键 → `Open File in IDEA`
- 在编辑器中右键 → `Open File in Jetbrains`
- 在文件浏览器中右键 → `Open File in Jetbrains`

### 配置

打开 Cursor 设置,点击 `General` → `Editor` → `open editor settings` → `Extensions` → `Switch2IDEA` → `Idea Path`
打开 Cursor 设置,点击 `General` → `Editor` → `open editor settings` → `Extensions` → `Switch2JETBRAIN` → `Idea Path`

- macOS:自动遍历 IDEA 常用安装路径
- Windows:默认 `C:\Program Files\JetBrains\IntelliJ IDEA\bin\idea64.exe`
Expand All @@ -87,7 +87,7 @@

请按以下步骤检查:

1. 打开 Cursor 设置,点击 `General` → `Editor` → `open editor settings` → `Extensions` → `Switch2IDEA`
1. 打开 Cursor 设置,点击 `General` → `Editor` → `open editor settings` → `Extensions` → `Switch2JETBRAIN`
2. 确认 Idea Path 是否正确配置成 IDEA 的可执行文件路径

### 2. 是否支持跳转到其他 IDE?
Expand All @@ -100,7 +100,7 @@

1. 打开 Cursor 设置,点击 `General` → `Editor` → `open editor settings`
2. 选择 `Workspace` 标签页
3. 导航到 `Extensions` → `Switch2IDEA` → `ideaPath`
3. 导航到 `Extensions` → `Switch2JETBRAIN` → `ideaPath`
4. 输入该项目需要使用的 IDE 路径

示例配置:
Expand All @@ -117,8 +117,8 @@

如果遇到问题或有建议,请通过以下方式反馈:

- [提交 GitHub Issue](https://github.com/qczone/switch2idea/issues)
- [提交 GitHub Issue](https://github.com/qczone/switch2jetbrain/issues)

## 🌟 Star 历史

[![Star History Chart](https://api.star-history.com/svg?repos=qczone/switch2idea&type=Date)](https://star-history.com/#qczone/switch2idea&Date)
[![Star History Chart](https://api.star-history.com/svg?repos=qczone/switch2jetbrain&type=Date)](https://star-history.com/#qczone/switch2jetbrain&Date)
50 changes: 35 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "switch2idea",
"displayName": "Switch2IDEA",
"name": "switch2jetbrain",
"displayName": "Switch2JETBRAIN",
"description": "Quickly switch between VS Code and IntelliJ IDEA, open current file in IDEA with the same position",
"version": "1.0.3",
"publisher": "qczone",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/qczone/switch2idea"
"url": "https://github.com/qczone/switch2jetbrain"
},
"icon": "images/icon.png",
"engines": {
Expand All @@ -31,51 +31,71 @@
"contributes": {
"commands": [
{
"command": "Switch2IDEA.openFileInIDEA",
"title": "Open File in IDEA"
"command": "Switch2JETBRAIN.openFileInJETBRAIN",
"title": "Open File in Jetbrains"
},
{
"command": "Switch2IDEA.openProjectInIDEA",
"title": "Open Project in IDEA"
"command": "Switch2JETBRAIN.openProjectInJETBRAIN",
"title": "Open Project in Jetbrains"
}
],
"keybindings": [
{
"command": "Switch2IDEA.openFileInIDEA",
"command": "Switch2JETBRAIN.openFileInJETBRAIN",
"key": "alt+shift+o",
"mac": "alt+shift+o",
"when": "editorTextFocus"
},
{
"command": "Switch2IDEA.openProjectInIDEA",
"command": "Switch2JETBRAIN.openProjectInJETBRAIN",
"key": "alt+shift+p",
"mac": "alt+shift+p"
}
],
"configuration": {
"title": "Switch2IDEA",
"title": "Switch2JETBRAIN",
"properties": {
"switch2idea.ideaPath": {
"switch2jetbrain.ideaPath": {
"type": "string",
"default": "",
"description": "IDEA executable path"
"description": "IDEA executable path (leave empty for auto-detection)"
},
"switch2jetbrain.autoDetectProjectType": {
"type": "boolean",
"default": true,
"description": "Automatically detect project type and choose appropriate IDE"
},
"switch2jetbrain.webstormPath": {
"type": "string",
"default": "",
"description": "WebStorm executable path (leave empty for auto-detection)"
},
"switch2jetbrain.pycharmPath": {
"type": "string",
"default": "",
"description": "PyCharm executable path (leave empty for auto-detection)"
},
"switch2jetbrain.golandPath": {
"type": "string",
"default": "",
"description": "GoLand executable path (leave empty for auto-detection)"
}
}
},
"menus": {
"editor/context": [
{
"command": "Switch2IDEA.openFileInIDEA",
"command": "Switch2JETBRAIN.openFileInJETBRAIN",
"group": "navigation"
}
],
"explorer/context": [
{
"command": "Switch2IDEA.openFileInIDEA",
"command": "Switch2JETBRAIN.openFileInJETBRAIN",
"group": "navigation"
},
{
"command": "Switch2IDEA.openProjectInIDEA",
"command": "Switch2JETBRAIN.openProjectInJETBRAIN",
"group": "navigation"
}
]
Expand Down
Loading