Skip to content

Commit

Permalink
fixed #5 Line comment not working with numpad (#6)
Browse files Browse the repository at this point in the history
* fixed #5

* fixed #5
  • Loading branch information
Keisuke KATO authored Jul 6, 2016
1 parent 887cda2 commit 1ab6544
Show file tree
Hide file tree
Showing 6 changed files with 942 additions and 929 deletions.
32 changes: 25 additions & 7 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,38 @@
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process

// A task runner that calls a custom npm script that compiles the extension.
{
"version": "0.1.0",
"command": "${workspaceRoot}/node_modules/.bin/gulp",

// we want to run npm
"command": "npm",

// the command is a shell script
"isShellCommand": true,
"args": [
],

// show the output window only if unrecognized errors occur.
"showOutput": "always",

"args": ["run"],

"tasks": [
{
"taskName": "build",
"args": [],
"taskName": "gulp",
"suppressTaskName": true,

// If this property is set to true, Ctrl+Shift+B will trigger this task.
"isBuildCommand": true,
"problemMatcher": "$eslint-stylish",
"isWatching": true

// we run the custom script "compile" as defined in package.json
"args": ["gulp", "build"],

// The tsc compiler is started in watching mode
"isWatching": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$eslint-stylish"
}
]
}
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Port of IntelliJ IDEA key bindings for VS Code.

### Editing

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
ctrl+space | ctrl+space | Basic code completion (the name of any class, method or variable) | Yes
ctrl+shft+space | ctrl+shft+space | Smart code completion (filters the list of methods and variables by expected type) | N/A
Expand Down Expand Up @@ -56,7 +56,7 @@ ctrl+f4 | cmd+w | Close active editor tab | Yes

### Search/Replace

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
shfit shift | shfit shift | Search everywhere | N/A
ctrl+f | cmd+f | Find | Yes
Expand All @@ -70,7 +70,7 @@ ctrl+shift+m | cmd+shift+m | Replace structurally (Ultimate Edition only) | N/A

### Usage Search

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
alt+f7 | alt+f7 | Find usages | Yes
ctrl+f7 | cmd+f7 | Find usages in file | N/A
Expand All @@ -79,7 +79,7 @@ ctrl+alt+f7 | cmd+alt+f7 | Show usages | N/A

### Compile and Run

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
ctrl+f9 | cmd+f9 | Make project (compile modifed and dependent) | Yes
ctrl+shift+f9 | cmd+shift+f9 | Compile selected file, package or module | N/A
Expand All @@ -91,7 +91,7 @@ ctrl+shift+f10 | ctrl+shift+r | Run context configuration from editor | N/A

### Debugging

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
f8 | f8 | Step over | Yes
f7 | f7 | Step into | Yes
Expand All @@ -106,7 +106,7 @@ ctrl+shift+f8 | cmd+shift+f8 | View breakpoints | Yes

### Navigation

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
ctrl+n | cmd+o | Go to class | Yes
ctrl+shift+n | cmd+shift+o | Go to file | Yes
Expand Down Expand Up @@ -148,7 +148,7 @@ shift+f11 | cmd+f3 | Show bookmarks | N/A

### Refactoring

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
f5 | f5 | Copy | N/A
f6 | f6 | Move | N/A
Expand All @@ -164,7 +164,7 @@ ctrl+alt+p | cmd+alt+p | Extract Parameter | N/A

### VCS/Local History

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
ctrl+k | cmd+k | Commit project to VCS | Yes
ctrl+t | cmd+t | Update project from VCS | Yes
Expand All @@ -173,14 +173,14 @@ ctrl+` | ctrl+v | ‘VCS’ quick popup | Yes

### Live Templates

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
ctrl+alt+j | cmd+alt+j | Surround with Live Template | N/A
ctrl+j | cmd+j | Insert Live Template | N/A

### General

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
alt+1 | cmd+1 | Open corresponding tool window (Explorer) | Yes
alt+5 | cmd+5 | Open corresponding tool window (Debug) | Yes
Expand All @@ -199,7 +199,7 @@ ctrl+tab | ctrl+tab | Switch between tabs and tool window | Yes

### Custom

Linux, Windows | OS X | Feature | Supported
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
f7 | f7 | Next difference | Yes
shift+f7 | shift+f7 | Previous difference | Yes
Expand All @@ -209,7 +209,7 @@ shift+f7 | shift+f7 | Previous difference | Yes

1. Install Visual Studio Code 0.10.11 or higher
1. Launch Code
1. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (OS X)
1. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (macOS)
1. Select `Install Extension`
1. Choose the extension '`intellijkeybind`' *or* run `ext install intellijkeybind`
1. Reload Visual Studio Code
Expand All @@ -235,12 +235,12 @@ npm install
Now you can compile the code:

1. Launch Code
1. Run Build Task `Ctrl`-`Shift`-`B` (Windows, Linux) or `Cmd`-`Shift`-`B` (OS X)
1. Run Build Task `Ctrl`-`Shift`-`B` (Windows, Linux) or `Cmd`-`Shift`-`B` (macOS)

or

1. Launch Code
1. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (OS X)
1. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (macOS)
1. Select `Tasks: Run Build Task`

After the initial compile, the source files will be watched and recompiled
Expand Down
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
var gulp = require('gulp');
var rename = require("gulp-rename");
var stripJsonComments = require('gulp-strip-json-comments');
var prettify = require('gulp-jsbeautifier');

gulp.task('default', function () {
return gulp.src('./src/package-with-comment.json')
.pipe(stripJsonComments())
.pipe(prettify())
.pipe(rename("./package.json"))
.pipe(gulp.dest('./'));
});
Expand Down
Loading

0 comments on commit 1ab6544

Please sign in to comment.